/* A quiet, in-place reveal. The collection never scrolls to open a product. */
html.pg-open { overflow: hidden; scroll-behavior: auto !important; }
.product-gallery {
  position: fixed; inset: 0; width: min(1160px, calc(100% - 64px));
  max-width: none; height: min(820px, calc(100dvh - 64px)); max-height: calc(100% - 40px);
  padding: 0; margin: auto; border: 1px solid #c8b48f; border-radius: 6px;
  background: #fbf7f0; color: #251e18; box-shadow: 0 32px 100px #0005; overflow: hidden;
}
.product-gallery[open] { animation: pg-reveal 360ms cubic-bezier(.16, 1, .3, 1) both; }
.product-gallery::backdrop { background: rgb(15 12 9 / 72%); backdrop-filter: blur(5px); animation: pg-backdrop-in 240ms ease both; }
.product-gallery.is-closing { animation: pg-dismiss 180ms ease both; pointer-events: none; }
.product-gallery.is-closing::backdrop { animation: pg-backdrop-out 180ms ease both; }
.product-gallery [hidden] { display: none !important; }
.product-gallery :is(button, a, summary):focus-visible { outline: 2px solid #986c25; outline-offset: 4px; }
.product-gallery button { cursor: pointer; color: inherit; }
.product-gallery button:disabled { opacity: .35; cursor: default; }
.product-gallery svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.pg-shell { height: 100%; display: flex; flex-direction: column; }
.pg-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: 0 0 68px; padding: 10px 28px; border-bottom: 1px solid #dfd4c5; }
.pg-brand { display: flex; align-items: center; gap: 22px; margin: 0; font-family: "Noto Serif Devanagari", serif; font-size: 25px; color: #99712f; line-height: 1.3; }
.pg-brand span { padding-left: 22px; border-left: 1px solid #d7c7ad; color: #776a5a; font: 10px "Manrope", sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.pg-close { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0 8px 12px; min-height: 44px; background: none; border: 0; font-size: 11px; letter-spacing: .06em; }
.pg-close:hover { color: #986c25; }
.pg-layout { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); min-height: 0; flex: 1; }
.pg-visual { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 22px 26px 24px; background: #efe8de; border-right: 1px solid #dfd4c5; }
.pg-stage { position: relative; flex: 1; min-height: 180px; background: #e7ded2; overflow: hidden; }
.pg-image-link { position: absolute; inset: 0; display: block; }
.pg-photo { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.pg-image-status { position: absolute; inset: 40% 24px auto; text-align: center; color: #63513f; font-size: 12px; pointer-events: none; }
.pg-photo-controls { position: absolute; bottom: 14px; right: 14px; display: flex; align-items: center; background: rgb(251 247 240 / 94%); border: 1px solid #c4b69f; border-radius: 3px; }
.pg-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 42px; padding: 0; border: 0; background: transparent; }
.pg-icon-button:hover { background: #e5d8c3; }
.pg-counter { min-width: 40px; padding: 0 3px; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.pg-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 11px 0 14px; font-size: 10px; line-height: 1.5; color: #665545; }
.pg-photo-label { min-width: 0; }
.pg-full-size { flex-shrink: 0; text-decoration: underline; text-underline-offset: 3px; padding: 3px 0; }
.pg-thumbnails { display: flex; flex-wrap: wrap; gap: 9px; }
.pg-thumbnails button { width: 51px; height: 64px; padding: 3px; border: 1px solid #cabbab; border-radius: 2px; background: transparent; transition: border-color 150ms ease, background 150ms ease; }
.pg-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.pg-thumbnails button[aria-pressed="true"] { border-color: #876124; background: #fffaf1; box-shadow: 0 0 0 1px #876124; }
.pg-details { min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(28px, 4vw, 48px) clamp(26px, 4vw, 48px) 30px; }
.pg-kind { color: #92713c; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 700; margin: 0 0 17px; }
.product-gallery h2 { font-family: "Cormorant Garamond", serif; font-size: clamp(34px, 3.5vw, 46px); font-weight: 500; line-height: 1.04; letter-spacing: -.025em; margin: 0; }
.pg-description { margin: 20px 0 25px; color: #6e6052; font-size: 12px; line-height: 1.85; }
.pg-colour-section { padding: 22px 0 25px; border-top: 1px solid #ded3c3; }
.pg-colour-heading { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 13px; color: #8a7761; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.pg-colour-name { color: #382e25; font-weight: 600; }
.pg-colours { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-colours button { min-height: 44px; padding: 10px 14px; background: transparent; border: 1px solid #cdbda8; border-radius: 2px; font-size: 11px; transition: color 180ms ease, background 180ms ease; }
.pg-colours button:hover { background: #eee2ce; }
.pg-colours button[aria-pressed="true"] { border-color: #31271d; background: #31271d; color: #fff5e4; }
.pg-actions { display: flex; flex-direction: column; gap: 12px; }
.pg-enquire { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; padding: 15px 20px; background: #201b15; border: 1px solid #201b15; color: #f4dfb8; font-size: 12px; letter-spacing: .035em; transition: background 180ms ease; }
.pg-enquire:hover { background: #3c3021; }
.pg-enquire span { font-size: 18px; line-height: 1; }
.pg-actual { align-self: center; display: inline-flex; align-items: center; min-height: 40px; font-size: 11px; text-decoration: underline; text-underline-offset: 5px; }
.pg-availability { margin: 15px 0 24px; font-size: 10px; color: #7d6d5d; line-height: 1.8; }
.pg-notes { padding: 18px 0 4px; border-top: 1px solid #ded3c3; color: #6e6052; font-size: 11px; }
.pg-notes summary { cursor: pointer; color: #443629; font-size: 12px; padding: 4px 0; }
.pg-notes p { line-height: 1.85; margin: 14px 0 0; }
@keyframes pg-reveal { from { opacity: 0; transform: scale(.975); } to { opacity: 1; transform: scale(1); } }
@keyframes pg-dismiss { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.985); } }
@keyframes pg-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pg-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 760px) {
  .product-gallery { width: 100%; height: 100dvh; max-height: 100%; border: 0; border-radius: 0; }
  .pg-header { flex-basis: 62px; padding: max(10px, env(safe-area-inset-top)) 20px 10px; }
  .pg-brand { font-size: 24px; gap: 14px; }
  .pg-brand span { padding-left: 14px; font-size: 9px; }
  .pg-layout { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .pg-visual { padding: 16px 20px 20px; border-right: 0; border-bottom: 1px solid #dfd4c5; }
  .pg-stage { flex: none; height: min(57dvh, 580px); min-height: 270px; }
  .pg-caption { font-size: 10px; margin-bottom: 14px; }
  .pg-thumbnails button { width: 46px; height: 58px; }
  .pg-details { overflow: visible; padding: 28px 24px max(28px, env(safe-area-inset-bottom)); }
  .product-gallery h2 { font-size: 38px; max-width: 480px; }
  .pg-description { font-size: 13px; margin-bottom: 24px; }
  .pg-kind { margin-bottom: 13px; }
  .pg-colours button { font-size: 12px; }
  .pg-enquire { min-height: 54px; font-size: 13px; }
  .pg-actual { font-size: 12px; }
  .pg-availability, .pg-notes { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-gallery, .product-gallery::backdrop, .product-gallery * { animation: none !important; transition: none !important; }
}
