/* =========================================================
   V10 — real wedding cover + direct swipe gallery
   ========================================================= */

/* ---------------------------------------------------------
   Real cover on the wedding category card
   --------------------------------------------------------- */
.work-card--real .work-art--real {
  position: relative;
  overflow: hidden;
  background: #dde6e2;
}

.work-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.001);
  transition: transform 0.9s var(--ease), filter 0.4s ease;
}

.work-art--real::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 10, 9, 0.4) 0%, transparent 28%, transparent 55%, rgba(5, 10, 9, 0.3) 100%);
}

.work-art--real .work-topline {
  z-index: 3;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.24);
}

.work-cover-count {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 26, 24, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-shadow: none;
}

.work-art--real .work-hover {
  z-index: 3;
}

.work-card--real:hover .work-cover {
  transform: scale(1.035);
}

.work-card--real .work-caption .work-tags {
  color: var(--muted-2);
}

/* ---------------------------------------------------------
   Full-screen direct gallery — one image, no thumbnail menu
   --------------------------------------------------------- */
.wedding-gallery {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(190, 222, 211, 0.4), transparent 38%),
    radial-gradient(ellipse at 92% 88%, rgba(185, 205, 227, 0.28), transparent 42%),
    linear-gradient(180deg, #f8faf9 0%, #eef5f2 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.32s ease,
    visibility 0.32s ease;
}

.wedding-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), transparent 20%),
    radial-gradient(ellipse at 50% 50%, transparent 24%, rgba(32, 53, 49, 0.035) 100%);
}

.wedding-gallery.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wg-topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: calc(100% - 48px);
  max-width: 1400px;
  height: 54px;
  margin: 16px auto 0;
  padding: 0 10px;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(245, 251, 249, 0.64)),
    rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 10px 30px rgba(25, 50, 46, 0.08);
  -webkit-backdrop-filter: blur(32px) saturate(150%);
  backdrop-filter: blur(32px) saturate(150%);
}

.wg-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    background-color 0.25s ease,
    transform 0.25s var(--ease);
}

.wg-back span {
  font-size: 14px;
  line-height: 1;
}

.wg-back:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(-1px);
}

.wg-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.wg-count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.wg-count b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wg-divider {
  color: var(--muted-2);
}

.wg-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 16px 0;
  touch-action: pan-y;
}

.wg-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 clamp(64px, 9vw, 158px);
}

.wg-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 20px;
  background: #e4ece8;
  box-shadow:
    0 28px 80px rgba(24, 45, 41, 0.18),
    0 3px 12px rgba(24, 45, 41, 0.08);
  user-select: none;
  -webkit-user-select: none;
}

.wg-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: clamp(64px, 12vw, 160px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.wg-zone--prev {
  left: 0;
}

.wg-zone--next {
  right: 0;
}

.wg-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 7px 22px rgba(24, 45, 41, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.25s ease,
    transform 0.25s var(--ease),
    background-color 0.25s ease;
}

.wg-zone:hover .wg-arrow,
.wg-zone:focus-visible .wg-arrow {
  opacity: 1;
  transform: scale(1);
}

.wg-zone:focus-visible {
  outline: none;
}

.wg-zone:focus-visible .wg-arrow {
  outline: 2px solid rgba(0, 113, 227, 0.5);
  outline-offset: 3px;
}

.wg-zone--prev:hover .wg-arrow {
  transform: scale(1) translateX(-2px);
}

.wg-zone--next:hover .wg-arrow {
  transform: scale(1) translateX(2px);
}

.wg-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 20px;
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 4px 4px 20px;
  color: var(--muted);
}

.wg-label {
  font-family: var(--serif-en);
  font-size: 9px;
  font-style: italic;
  letter-spacing: 0.06em;
}

.wg-hint {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.03em;
}

/* The gallery is the only active surface while open. */
body.is-locked .wedding-gallery.is-open {
  touch-action: none;
}

@media (max-width: 760px) {
  .wg-topbar {
    width: calc(100% - 24px);
    height: 50px;
    margin-top: 10px;
    padding: 0 8px;
  }

  .wg-back {
    height: 34px;
    padding: 0 12px;
    font-size: 10px;
  }

  .wg-title {
    font-size: 11px;
  }

  .wg-count {
    font-size: 8px;
  }

  .wg-count b {
    font-size: 11px;
  }

  .wg-stage {
    padding: 10px 0;
  }

  .wg-figure {
    padding: 0 16px;
  }

  .wg-figure img {
    border-radius: 14px;
    box-shadow:
      0 18px 46px rgba(24, 45, 41, 0.15),
      0 2px 8px rgba(24, 45, 41, 0.06);
  }

  .wg-zone {
    width: 19%;
    min-width: 48px;
  }

  .wg-arrow {
    display: none;
  }

  .wg-bottom {
    width: calc(100% - 28px);
    padding: 4px 4px 13px;
  }

  .wg-label {
    font-size: 8px;
  }

  .wg-hint {
    font-size: 7px;
  }
}

@media (max-width: 380px) {
  .wg-title {
    display: none;
  }

  .wg-hint {
    max-width: 170px;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wedding-gallery,
  .work-cover,
  .wg-back,
  .wg-arrow {
    transition: none;
  }
}
