/* Wedding gowns page: filters, gown cards and the viewer. Uses the theme tokens from site.css. */
.gw-title { max-width: 900px; }
.gw-price { display: inline-flex; align-items: baseline; gap: .55em; margin: 26px 0 0; padding: .55em 1.15em; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 1.05rem; }
.gw-price strong { font-family: var(--font-soft); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--accent); }
.gw-title .gw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* sticky filter bar */
.gw-bar { position: sticky; top: var(--h); z-index: 30; background: var(--bg); border-block: 1px solid var(--line); padding: 12px 0 10px; }
.gw-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.gw-row::-webkit-scrollbar { display: none; }
.gw-row + .gw-row { margin-top: 8px; }
.gw-label { flex: none; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); min-width: 4.8em; }
.gw-bar button.f { flex: none; font: inherit; font-size: .95rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .5em .95em; cursor: pointer; display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; }
.gw-bar button.f:hover { border-color: var(--accent); }
.gw-bar button.f[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gw-bar button.f small { opacity: .65; font-size: .82em; }
.gw-sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .22); flex: none; }
.gw-status { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-block: 18px 0; color: var(--muted); font-size: .95rem; }
.gw-status button { font: inherit; background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0; }
.gw-status button[hidden] { display: none; }

/* collections */
.gw-col { padding-block: clamp(34px, 5vw, 64px) 0; scroll-margin-top: calc(var(--h) + 120px); }
.gw-col[hidden] { display: none; }
.gw-col-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(18px, 2.6vw, 30px); }
.gw-col-head h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.gw-col-head p { color: var(--muted); margin: 10px 0 0; max-width: 50ch; }
.gw-count { font-size: .72rem; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
.gw-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.gw-card { position: relative; display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gw-card[hidden] { display: none; }
.gw-card .ph { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: var(--surface); }
.gw-card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: opacity .35s ease, transform .5s ease; }
.gw-card .ph img.b { opacity: 0; }
.gw-card:hover .ph img.a.has-b { opacity: 0; }
.gw-card:hover .ph img.b { opacity: 1; }
.gw-card:hover .ph img:not(.b):not(.has-b) { transform: scale(1.03); }
.gw-card .views { position: absolute; left: 10px; bottom: 10px; background: rgb(255 255 255 / .92); color: #2a1b29; font-size: .74rem; font-weight: 600; padding: .3em .7em; border-radius: 999px; backdrop-filter: blur(4px); }
.gw-card .meta { display: block; text-align: center; padding: 11px 2px 0; }
.gw-card .nm { font-family: var(--font-soft); font-size: 1.15rem; line-height: 1.2; }
.gw-card .pr { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.gw-empty { padding: 60px 0 20px; text-align: center; color: var(--muted); }
.gw-empty[hidden] { display: none; }
.gw-note { margin: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: .95rem; max-width: none; }
.gw-note a { color: var(--accent); }

/* viewer */
body.gw-open { overflow: hidden; }
.gw-box { padding: 0; border: 0; background: transparent; color: var(--ink); width: min(1080px, calc(100vw - 24px)); max-width: none; max-height: calc(100svh - 24px); margin: auto; overflow: visible; }
.gw-box::backdrop { background: rgb(28 14 26 / .72); backdrop-filter: blur(3px); }
.gw-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); background: var(--bg); border-radius: 16px; overflow: hidden; max-height: calc(100svh - 24px); }
.gw-stage { position: relative; background: var(--surface); display: grid; place-items: center; min-height: 0; touch-action: pan-y; }
.gw-stage img { width: 100%; height: calc(100svh - 24px); max-height: 820px; object-fit: contain; display: block; }
.gw-nav { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: #2a1b29; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgb(0 0 0 / .2); display: grid; place-items: center; }
.gw-nav:hover { background: #fff; }
.gw-nav.prev { left: 12px; } .gw-nav.next { right: 12px; }
.gw-side { padding: clamp(22px, 3vw, 38px); display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.gw-side .col { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.gw-side h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-top: 6px; }
.gw-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gw-tags span { display: inline-flex; align-items: center; gap: .5em; font-size: .88rem; border: 1px solid var(--line); border-radius: 999px; padding: .3em .8em; }
.gw-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.gw-thumbs button { padding: 0; border: 2px solid transparent; background: none; border-radius: 8px; cursor: pointer; text-align: center; font: inherit; font-size: .78rem; color: var(--muted); }
.gw-thumbs button img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 6px; margin-bottom: 4px; }
.gw-thumbs button[aria-current="true"] { border-color: var(--accent); color: var(--ink); }
.gw-buy { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.gw-buy .p { display: flex; align-items: baseline; gap: .5em; margin: 0; }
.gw-buy .p strong { font-family: var(--font-soft); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--accent); }
.gw-buy .btn { justify-content: center; text-align: center; }
.gw-pos { font-size: .82rem; color: var(--muted); text-align: center; margin: 0; max-width: none; }
.gw-x { position: absolute; z-index: 2; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: #2a1b29; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgb(0 0 0 / .2); }
.gw-x:hover { background: #fff; }

@media (max-width: 1180px) { .gw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .gw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gw-in { grid-template-columns: 1fr; overflow-y: auto; }
  .gw-stage img { height: auto; max-height: 56svh; }
  .gw-side { overflow: visible; }
}
@media (max-width: 600px) {
  .gw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gw-card .nm { font-size: 1.02rem; }
  .gw-card .pr { display: none; }
  .gw-label { min-width: 0; }
  .gw-col-head { flex-direction: column; align-items: start; gap: 8px; }
  .gw-box { width: 100vw; max-height: 100svh; }
  .gw-in { border-radius: 0; max-height: 100svh; }
  .gw-stage img { max-height: 54svh; }
}
@media (prefers-reduced-motion: reduce) { .gw-card .ph img { transition: none; } }
@media (max-width: 900px) {
  /* on phones the enquire button stays in reach while the sheet scrolls */
  .gw-buy { position: sticky; bottom: 0; background: var(--bg); margin-inline: calc(-1 * clamp(22px, 3vw, 38px)); padding: 14px clamp(22px, 3vw, 38px) calc(16px + env(safe-area-inset-bottom, 0px)); }
}

.gw-pricetag { color: var(--ink); font-size: 1.05rem; }
.gw-pricetag strong { font-family: var(--font-soft); font-weight: 400; font-size: 1.6rem; color: var(--accent); margin-right: .15em; vertical-align: -.08em; }
@media (max-width: 600px) { .gw-status { flex-wrap: wrap; } }
/* enlarged photo */
.gw-box img#gwBig { cursor: zoom-in; }
.gw-zoom { padding: 0; border: 0; background: transparent; width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; overflow: hidden; }
.gw-zoom::backdrop { background: rgb(14 7 13 / .94); }
.gw-zoom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 16px 70px 44px; }
.gw-zoom .gw-nav { z-index: 2; }
.gw-zoom-cap { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; max-width: none; text-align: center; color: #fff; font-size: .9rem; opacity: .85; }
@media (max-width: 600px) { .gw-zoom img { padding: 56px 10px 44px; } .gw-zoom .gw-nav { top: auto; bottom: 48px; translate: 0 0; } }

/* Keep the entire gown visible, including the train and headdress. */
.gw-stage {overflow:hidden;}
.gw-stage img#gwBig {object-fit:contain;object-position:center center;}

/* Consistent edge-to-edge portrait framing. */
.gw-stage img#gwBig { object-fit: cover; object-position: center center; }
@media (max-width: 900px) { .gw-stage img#gwBig { width: 100%; height: min(56svh, 125vw); max-height: none; } }
@media (max-width: 600px) { .gw-stage img#gwBig { height: min(54svh, 125vw); } }
.gw-zoom img { touch-action: none; user-select: none; transition: transform .15s ease; }
.gw-zoom-controls { position: absolute; z-index: 3; top: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; padding: 5px; border-radius: 999px; background: rgb(20 12 18 / .8); }
.gw-zoom-controls button { border: 0; background: white; color: #2a1b29; border-radius: 999px; min-width: 40px; height: 40px; padding: 0 12px; font: inherit; font-weight: 600; cursor: pointer; }
.gw-zoom-controls button:disabled { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: reduce) { .gw-zoom img { transition: none; } }

.gw-zoom img.is-dragging { transition: none; cursor: grabbing !important; }

/* View choices sit close to the photo, before the gown details. */
.gw-view-options[hidden] { display: none; }
.gw-view-hint { margin: 0 0 8px; color: var(--muted); font-size: .85rem; }
.gw-view-options .gw-thumbs { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
@media (max-width: 900px) {
  .gw-stage img#gwBig { width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 5; object-fit: contain; }
  .gw-side { padding: 16px 20px 24px; gap: 12px; }
  .gw-view-options .gw-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
  .gw-thumbs button { width: 60px; flex: 0 0 60px; }
  .gw-side h2 { font-size: 1.8rem; }
  .gw-buy { position: static; margin: 0; padding: 14px 0 0; }
  .gw-buy .p strong { font-size: 1.8rem; }
}
@media (min-width: 901px) { .gw-view-options { order: 1; } .gw-buy { order: 2; } }

.gw-buy .p { justify-content: center; }

.gw-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
@media(max-width:700px){.gw-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}}
