/* ==========================================================================
   PrincessOfCosplay — Annette van Alewijk
   Google Material Design 3 + Brushed Silver Wall + Asymmetric Brocante Salon
   ========================================================================== */

:root {
  /* Material Design 3 Color System (Harmonized Sterling Silver & Antique Gold) */
  --md-sys-color-primary: #825d15;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #f5e2b3;
  --md-sys-color-on-primary-container: #2c1e02;
  --md-sys-color-surface: #cfd4dc;
  --md-sys-color-surface-container: rgba(246, 248, 251, 0.8);
  --md-sys-color-surface-container-high: rgba(252, 253, 255, 0.94);
  --md-sys-color-on-surface: #1b1f26;
  --md-sys-color-on-surface-variant: #4c5462;
  --md-sys-color-outline: rgba(89, 98, 114, 0.42);
  --md-sys-color-outline-variant: rgba(120, 129, 144, 0.24);
  --md-sys-color-scrim: rgba(18, 22, 30, 0.48);

  /* Material Design 3 Elevation Shadows */
  --md-sys-elevation-1: 0 1px 3px 1px rgba(24, 30, 42, 0.14), 0 1px 2px rgba(24, 30, 42, 0.22);
  --md-sys-elevation-2: 0 2px 6px 2px rgba(24, 30, 42, 0.15), 0 1px 2px rgba(24, 30, 42, 0.24);
  --md-sys-elevation-3: 0 6px 18px 4px rgba(24, 30, 42, 0.16), 0 2px 6px rgba(24, 30, 42, 0.22);
  --md-sys-elevation-4: 0 14px 36px 6px rgba(20, 26, 36, 0.24), 0 4px 12px rgba(20, 26, 36, 0.22);

  /* Material Design 3 Motion Curves */
  --md-sys-motion-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --md-sys-motion-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
  --md-sys-motion-standard: cubic-bezier(0.2, 0, 0, 1);

  /* Material Design 3 Typography */
  --font-ui: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cinzel", Georgia, serif;
  --font-editorial: "Cormorant Garamond", Georgia, serif;

  /* Frame Geometry defaults */
  --frame-thickness: clamp(18px, 1.75vw, 27px);
  --mat-thickness: clamp(5px, 0.45vw, 7px);
  --corner-size: clamp(42px, 4.1vw, 66px);
  --crest-w: clamp(102px, 10vw, 156px);
  --crest-h: clamp(22px, 2.15vw, 34px);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Brushed Sterling Silver Background Wall
   ========================================================================== */
body {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  font-family: var(--font-ui);
  color: var(--md-sys-color-on-surface);
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  background-color: #bfc6d0;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.048) 0px,
      rgba(255, 255, 255, 0.048) 1px,
      rgba(90, 98, 112, 0.028) 1px,
      rgba(90, 98, 112, 0.028) 3px,
      transparent 3px,
      transparent 6px
    ),
    radial-gradient(
      ellipse 84% 72% at 50% 44%,
      rgba(250, 252, 255, 0.72) 0%,
      rgba(222, 228, 236, 0.42) 46%,
      rgba(154, 163, 176, 0.26) 80%,
      rgba(104, 112, 126, 0.54) 100%
    ),
    linear-gradient(
      138deg,
      #d6dbe2 0%,
      #eef1f5 24%,
      #bfc6d0 50%,
      #d8dde4 74%,
      #9aa3b0 100%
    );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ==========================================================================
   Material Design 3 Subtle Exhibition Header (Desktop / Tablet)
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.4dvh, 18px) 24px clamp(2px, 0.5dvh, 6px);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
}

.brand-overline {
  font-family: var(--font-ui);
  font-size: clamp(0.76rem, 0.9vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--md-sys-color-on-surface-variant);
}

.brand-title {
  font-family: var(--font-editorial);
  font-size: clamp(2.25rem, 3.6vw, 3.35rem);
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: none;
  color: #20252e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
  line-height: 1.08;
}

/* ==========================================================================
   Main Salon Wall Stage (4 Asymmetric, Non-Aligned Brocante Paintings)
   ========================================================================== */
.gallery-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(6px, 1dvh, 12px) clamp(12px, 1.8vw, 28px);
}

.salon-wall {
  position: relative;
  width: 100%;
  height: 100%;
}

/*
 * Desktop Salon Composition — 4 Distinct Sizes, Zero Aligned Edges:
 * Frame 1: left  4.5%, right 28.0%, top  6.5%, bottom 82.0%  (23.5% × 75.5%)
 * Frame 2: left 31.8%, right 65.2%, top  1.5%, bottom 47.0%  (33.4% × 45.5%)
 * Frame 3: left 38.5%, right 60.0%, top 54.5%, bottom 95.5%  (21.5% × 41.0%)
 * Frame 4: left 69.2%, right 96.0%, top 21.5%, bottom 87.0%  (26.8% × 65.5%)
 */
.salon-frame-1 {
  position: absolute;
  left: 4.5%;
  top: 6.5%;
  width: 23.5%;
  height: 75.5%;
  --frame-thickness: clamp(20px, 1.85vw, 28px);
  --corner-size: clamp(46px, 4.4vw, 68px);
  --crest-w: clamp(104px, 10vw, 154px);
  --crest-h: clamp(22px, 2.1vw, 33px);
}

.salon-frame-2 {
  position: absolute;
  left: 31.8%;
  top: 1.5%;
  width: 33.4%;
  height: 45.5%;
  --frame-thickness: clamp(18px, 1.65vw, 25px);
  --corner-size: clamp(42px, 3.9vw, 62px);
  --crest-w: clamp(110px, 10.5vw, 162px);
  --crest-h: clamp(23px, 2.2vw, 35px);
}

.salon-frame-3 {
  position: absolute;
  left: 38.5%;
  top: 54.5%;
  width: 21.5%;
  height: 41%;
  --frame-thickness: clamp(16px, 1.4vw, 21px);
  --corner-size: clamp(36px, 3.3vw, 50px);
}

.salon-frame-4 {
  position: absolute;
  left: 69.2%;
  top: 21.5%;
  width: 26.8%;
  height: 65.5%;
  --frame-thickness: clamp(19px, 1.75vw, 27px);
  --corner-size: clamp(44px, 4.1vw, 64px);
  --crest-w: clamp(100px, 9.5vw, 146px);
  --crest-h: clamp(21px, 2vw, 32px);
}

/*
 * Portrait Desktop View (e.g. Mobile "Desktopweergave" ~980×1850 or Portrait Tablet):
 * Dedicated asymmetric 4-painting vertical salon wall — 4 distinct sizes & aspect ratios,
 * zero aligned edges, zero overlaps, natural portrait/landscape proportions!
 * Frame 1: left  4.0%, right 64.0%, top  2.0%, bottom 28.5%  (60.0% × 26.5% — large landscape)
 * Frame 2: left 69.5%, right 96.0%, top 17.5%, bottom 46.0%  (26.5% × 28.5% — slender upright)
 * Frame 3: left 11.5%, right 57.0%, top 34.0%, bottom 69.0%  (45.5% × 35.0% — grand portrait)
 * Frame 4: left 38.5%, right 91.0%, top 74.5%, bottom 96.5%  (52.5% × 22.0% — medium landscape)
 */
@media (min-width: 769px) and (max-aspect-ratio: 1 / 1) {
  .salon-frame-1 {
    left: 4%;
    top: 2%;
    width: 60%;
    height: 26.5%;
    --frame-thickness: clamp(18px, 2.2vw, 28px);
    --corner-size: clamp(46px, 5.4vw, 72px);
    --crest-w: clamp(114px, 13vw, 170px);
    --crest-h: clamp(24px, 2.8vw, 36px);
  }

  .salon-frame-2 {
    left: 69.5%;
    top: 17.5%;
    width: 26.5%;
    height: 28.5%;
    --frame-thickness: clamp(14px, 1.6vw, 21px);
    --corner-size: clamp(34px, 3.8vw, 52px);
    --crest-w: clamp(78px, 8.8vw, 118px);
    --crest-h: clamp(17px, 1.9vw, 26px);
  }

  .salon-frame-3 {
    left: 11.5%;
    top: 34%;
    width: 45.5%;
    height: 35%;
    --frame-thickness: clamp(19px, 2.3vw, 29px);
    --corner-size: clamp(46px, 5.5vw, 74px);
  }

  .salon-frame-4 {
    left: 29.5%;
    top: 74.5%;
    width: 53.5%;
    height: 22%;
    --frame-thickness: clamp(16px, 1.9vw, 25px);
    --corner-size: clamp(40px, 4.6vw, 62px);
    --crest-w: clamp(104px, 11.8vw, 154px);
    --crest-h: clamp(22px, 2.5vw, 34px);
  }

  .brand-title {
    font-size: clamp(2.55rem, 5vw, 3.6rem);
  }

  .frame-nameplate {
    font-size: clamp(0.88rem, 1.45vw, 1.15rem);
    padding: 3px 16px;
  }

  .photo-title {
    font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  }

  .photo-counter {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
  }
}

/* ==========================================================================
   Antique Brocante Golden Painting Frame Base + Heirloom Gold Variations
   ========================================================================== */
.painting-frame {
  padding: var(--frame-thickness);
  border-radius: 5px;
  isolation: isolate;
  touch-action: pan-y;

  background:
    linear-gradient(
      142deg,
      #f8e7ad 0%,
      #d6ad4e 18%,
      #9a7020 42%,
      #e6c368 62%,
      #8b6016 84%,
      #523609 100%
    );

  box-shadow:
    0 0 0 2px #4e3409,
    0 0 0 4px #b88c31,
    0 0 0 5px rgba(56, 36, 6, 0.72),
    0 22px 48px -8px rgba(24, 29, 38, 0.44),
    0 10px 20px -4px rgba(24, 29, 38, 0.3),
    0 2px 6px rgba(24, 29, 38, 0.22),
    inset 3px 3px 3px rgba(255, 249, 218, 0.72),
    inset -3px -3px 4px rgba(54, 34, 5, 0.72),
    inset 0 0 0 5px rgba(173, 128, 38, 0.55),
    inset 0 0 0 8px rgba(66, 43, 8, 0.5),
    inset 0 0 14px 6px rgba(48, 30, 4, 0.4);

  transition:
    transform 360ms var(--md-sys-motion-emphasized),
    box-shadow 360ms var(--md-sys-motion-emphasized);
}

/* Subtle curated antique gold-leaf tone variations across the 4 frames */
.frame-tone-champagne {
  background:
    linear-gradient(
      138deg,
      #fff3ca 0%,
      #e2bf6b 20%,
      #ac832e 45%,
      #f1d88c 68%,
      #946b1f 88%,
      #5d3f0d 100%
    );
}

.frame-tone-antique {
  background:
    linear-gradient(
      146deg,
      #eed893 0%,
      #c5993b 22%,
      #865f18 48%,
      #d8b153 70%,
      #775110 88%,
      #462d06 100%
    );
}

.frame-tone-bronze {
  background:
    linear-gradient(
      140deg,
      #f3de9c 0%,
      #cca144 20%,
      #8c6319 46%,
      #dfba5d 66%,
      #7c5412 86%,
      #482e07 100%
    );
}

.painting-frame:hover,
.painting-frame.is-focused {
  z-index: 5;
  box-shadow:
    0 0 0 2px #4e3409,
    0 0 0 4px #caa043,
    0 0 0 5px rgba(56, 36, 6, 0.76),
    0 28px 58px -6px rgba(24, 29, 38, 0.5),
    0 12px 24px -4px rgba(24, 29, 38, 0.34),
    0 3px 8px rgba(24, 29, 38, 0.24),
    inset 3px 3px 3px rgba(255, 249, 218, 0.78),
    inset -3px -3px 4px rgba(54, 34, 5, 0.72),
    inset 0 0 0 5px rgba(173, 128, 38, 0.58),
    inset 0 0 0 8px rgba(66, 43, 8, 0.5),
    inset 0 0 14px 6px rgba(48, 30, 4, 0.4);
}

/* Carved ogee gilded step molding layer */
.frame-molding-outer {
  position: absolute;
  inset: 5px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 1;
  border: 1.5px solid rgba(255, 243, 194, 0.55);
  box-shadow:
    inset 2px 2px 4px rgba(255, 246, 204, 0.55),
    inset -2px -2px 5px rgba(59, 38, 7, 0.68),
    0 0 0 1px rgba(72, 47, 10, 0.62);
  background:
    linear-gradient(
      to bottom,
      rgba(255, 247, 212, 0.24) 0%,
      transparent 14%,
      transparent 86%,
      rgba(48, 30, 4, 0.34) 100%
    ),
    linear-gradient(
      to right,
      rgba(255, 247, 212, 0.2) 0%,
      transparent 12%,
      transparent 88%,
      rgba(48, 30, 4, 0.3) 100%
    );
}

/* Authentic Brocante Weathered / Distressed Antique Gold-Leaf Patina */
.frame-brocante-patina {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0.46;
  background-image:
    radial-gradient(circle at 14% 12%, rgba(255, 248, 224, 0.55) 0%, transparent 18%),
    radial-gradient(circle at 88% 86%, rgba(56, 35, 6, 0.5) 0%, transparent 24%),
    radial-gradient(circle at 76% 14%, rgba(246, 232, 190, 0.4) 0%, transparent 16%),
    radial-gradient(circle at 20% 88%, rgba(74, 48, 10, 0.44) 0%, transparent 22%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65 0.14' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0.9 0 0 0 0.12  0 0.75 0 0 0.06  0 0 0.35 0 0  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* Inner Baroque Beaded Pearl Astragal Molding */
.frame-beaded-trim {
  position: absolute;
  inset: calc(var(--frame-thickness) - 7px);
  pointer-events: none;
  z-index: 3;
  border-radius: 2px;
  border: 2.5px dotted rgba(251, 232, 166, 0.82);
  box-shadow:
    0 0 0 1px rgba(68, 44, 8, 0.72),
    inset 0 0 0 1px rgba(74, 48, 10, 0.65);
}

/* ==========================================================================
   Ornate Baroque Corner Filigree & Crest Ornaments
   ========================================================================== */
.filigree-corner {
  position: absolute;
  width: var(--corner-size);
  height: var(--corner-size);
  pointer-events: none;
  z-index: 6;
  overflow: visible;
}

.filigree-tl {
  top: -5px;
  left: -5px;
}

.filigree-tr {
  top: -5px;
  right: -5px;
  transform: scaleX(-1);
}

.filigree-bl {
  bottom: -5px;
  left: -5px;
  transform: scaleY(-1);
}

.filigree-br {
  bottom: -5px;
  right: -5px;
  transform: scale(-1, -1);
}

.filigree-crest {
  position: absolute;
  left: 50%;
  width: var(--crest-w);
  height: var(--crest-h);
  pointer-events: none;
  z-index: 6;
  overflow: visible;
}

.filigree-top {
  top: -8px;
  transform: translateX(-50%);
}

/* ==========================================================================
   Inner Antique Gilt Passe-Partout & Canvas Well
   ========================================================================== */
.frame-inner-mat {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  padding: var(--mat-thickness);
  border-radius: 2px;
  background: linear-gradient(
    145deg,
    #efe3c4 0%,
    #d7bf86 35%,
    #b69249 70%,
    #8c6926 100%
  );
  box-shadow:
    inset 2px 2px 4px rgba(56, 36, 6, 0.72),
    inset -1px -1px 2px rgba(255, 248, 219, 0.6),
    0 1px 0 rgba(255, 244, 199, 0.55);
}

.painting-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1px;
  background-color: #141210;
  box-shadow:
    0 0 0 1px rgba(58, 39, 10, 0.8),
    inset 0 0 0 1px rgba(255, 234, 175, 0.25);
}

.canvas-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.painting-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  will-change: transform, opacity;
}

.painting-slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.painting-slide.is-standby {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.painting-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  transition: object-fit 250ms ease, filter 450ms var(--md-sys-motion-emphasized);
}

.salon-wall.is-fit-contain .painting-slide img {
  object-fit: contain;
  background: radial-gradient(circle at center, #221e19 0%, #110f0d 100%);
}

.canvas-rabbet-shadow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow:
    inset 0 0 22px rgba(15, 10, 4, 0.55),
    inset 3px 4px 10px rgba(12, 8, 2, 0.44),
    inset -2px -2px 6px rgba(255, 240, 198, 0.14);
}

/* Museum Antique Brass Nameplate on bottom golden rail */
.frame-nameplate {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 46px);
  padding: 2px 14px;
  border-radius: 3px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, #ecd07c 0%, #c89d3e 52%, #a27721 100%);
  border: 1px solid rgba(72, 47, 9, 0.72);
  box-shadow:
    0 2px 5px rgba(28, 17, 2, 0.52),
    inset 0 1px 0 rgba(255, 250, 224, 0.78);
  color: #352205;
  font-family: var(--font-editorial);
  font-size: clamp(0.76rem, 0.96vw, 0.96rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 rgba(255, 245, 204, 0.6);
}

.nameplate-desktop-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nameplate-mobile-brand {
  display: none;
}

.nameplate-artist {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 1.16em;
}

.nameplate-dot {
  opacity: 0.65;
  margin: 0 4px;
}

/* ==========================================================================
   Clickable Left & Right Edges per Painting
   ========================================================================== */
.edge-trigger {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 8;
  width: clamp(54px, 24%, 118px);
  display: flex;
  align-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  color: #fff9e6;
  outline: none;
  transition: background 280ms var(--md-sys-motion-standard);
}

.edge-prev {
  left: 0;
  justify-content: flex-start;
  padding-left: clamp(6px, 0.8vw, 14px);
  border-radius: 5px 0 0 5px;
}

.edge-next {
  right: 0;
  justify-content: flex-end;
  padding-right: clamp(6px, 0.8vw, 14px);
  border-radius: 0 5px 5px 0;
}

.edge-prev:hover,
.edge-prev:focus-visible {
  background: linear-gradient(
    to right,
    rgba(255, 242, 196, 0.24) 0%,
    rgba(214, 174, 82, 0.12) 52%,
    transparent 100%
  );
}

.edge-next:hover,
.edge-next:focus-visible {
  background: linear-gradient(
    to left,
    rgba(255, 242, 196, 0.24) 0%,
    rgba(214, 174, 82, 0.12) 52%,
    transparent 100%
  );
}

.edge-trigger:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 247, 214, 0.92);
}

.edge-chevron-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(34, 24, 9, 0.44);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(246, 224, 152, 0.52);
  box-shadow: var(--md-sys-elevation-2);
  color: #fdf2c8;
  opacity: 0.36;
  transform: scale(0.9);
  transition:
    opacity 220ms var(--md-sys-motion-emphasized),
    transform 220ms var(--md-sys-motion-emphasized),
    background-color 200ms ease,
    border-color 200ms ease;
}

.edge-chevron-pill .material-symbols-rounded {
  font-size: 24px;
  line-height: 1;
}

.painting-frame:hover .edge-chevron-pill {
  opacity: 0.65;
}

.edge-trigger:hover .edge-chevron-pill,
.edge-trigger:focus-visible .edge-chevron-pill {
  opacity: 1;
  background: rgba(42, 29, 10, 0.78);
  border-color: rgba(255, 240, 186, 0.88);
  transform: scale(1.06);
}

.edge-trigger:active .edge-chevron-pill {
  transform: scale(0.94);
  background: rgba(130, 93, 21, 0.88);
}

/* ==========================================================================
   Brocante Gold-Framed Material Design 3 Navigation Bar (Desktop / Tablet)
   ========================================================================== */
.gallery-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4px, 0.8dvh, 10px) 24px clamp(12px, 1.8dvh, 22px);
}

.md-control-bar.brocante-nav {
  position: relative;
  padding: 11px;
  border-radius: 5px;
  isolation: isolate;

  background:
    linear-gradient(
      142deg,
      #f8e7ad 0%,
      #d6ad4e 18%,
      #9a7020 42%,
      #e6c368 62%,
      #8b6016 84%,
      #523609 100%
    );

  box-shadow:
    0 0 0 2px #4e3409,
    0 0 0 3.5px #b88c31,
    0 0 0 4.5px rgba(56, 36, 6, 0.72),
    0 14px 30px -6px rgba(24, 29, 38, 0.42),
    0 6px 14px -3px rgba(24, 29, 38, 0.28),
    inset 2px 2px 2px rgba(255, 249, 218, 0.72),
    inset -2px -2px 3px rgba(54, 34, 5, 0.72),
    inset 0 0 0 4px rgba(173, 128, 38, 0.52),
    inset 0 0 8px 3px rgba(48, 30, 4, 0.4);
}

.brocante-nav .frame-molding-outer {
  inset: 3px;
  border-width: 1px;
}

.nav-beaded-trim {
  position: absolute;
  inset: 7px;
  pointer-events: none;
  z-index: 3;
  border-radius: 2px;
  border: 2px dotted rgba(251, 232, 166, 0.82);
  box-shadow:
    0 0 0 1px rgba(68, 44, 8, 0.7),
    inset 0 0 0 1px rgba(74, 48, 10, 0.62);
}

.nav-corner {
  width: 28px;
  height: 28px;
}

.nav-corner.filigree-tl { top: -3px; left: -3px; }
.nav-corner.filigree-tr { top: -3px; right: -3px; }
.nav-corner.filigree-bl { bottom: -3px; left: -3px; }
.nav-corner.filigree-br { bottom: -3px; right: -3px; }

.nav-inner-mat {
  position: relative;
  z-index: 4;
  padding: 3px;
  border-radius: 2px;
  background: linear-gradient(145deg, #efe3c4 0%, #d7bf86 35%, #b69249 70%, #8c6926 100%);
  box-shadow:
    inset 1.5px 1.5px 3px rgba(56, 36, 6, 0.72),
    inset -1px -1px 2px rgba(255, 248, 219, 0.55);
}

.nav-inner-canvas {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 6px 14px 6px 22px;
  border-radius: 1px;
  background: linear-gradient(180deg, #1f1a14 0%, #14110d 100%);
  box-shadow:
    0 0 0 1px rgba(58, 39, 10, 0.8),
    inset 0 0 16px rgba(8, 5, 2, 0.65);
}

.photo-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.photo-title {
  font-family: var(--font-editorial);
  font-size: 1.32rem;
  font-weight: 600;
  color: #f8e8b8;
  letter-spacing: 0.025em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.photo-counter {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
  color: #cbb57c;
  font-variant-numeric: tabular-nums;
}

.photo-counter:empty {
  display: none;
}

.bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Material Design 3 Gilded Brass Action Chip ("Volgende 4") */
.md-tonal-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(72, 47, 9, 0.75);
  border-radius: 999px;
  background: linear-gradient(180deg, #f3dc92 0%, #cca042 54%, #a17620 100%);
  color: #2c1b03;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 246, 210, 0.55);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 250, 224, 0.78);
  cursor: pointer;
  transition: box-shadow 180ms ease, filter 180ms ease, transform 160ms ease;
}

.md-tonal-chip:hover {
  filter: brightness(1.06);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 252, 232, 0.88);
}

.md-tonal-chip:active {
  transform: scale(0.97);
}

.md-tonal-chip:focus-visible {
  outline: 2px solid #f7e3a1;
  outline-offset: 2px;
}

.md-tonal-chip .material-symbols-rounded {
  font-size: 19px;
}

/* Material Design 3 Warm Gold Icon Buttons */
.md-icon-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #e6cf8b;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.md-icon-btn:hover {
  background: rgba(236, 208, 124, 0.16);
  border-color: rgba(236, 208, 124, 0.35);
  color: #fff3c8;
}

.md-icon-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, #ecd07c 0%, #c19538 100%);
  border-color: rgba(72, 47, 9, 0.75);
  color: #2c1b03;
}

.md-icon-btn:focus-visible {
  outline: 2px solid #f7e3a1;
  outline-offset: 2px;
}

.md-icon-btn .material-symbols-rounded {
  font-size: 20px;
}

/* ==========================================================================
   Material Design 3 Ripple Effect
   ========================================================================== */
.md-ripple-surface {
  overflow: hidden;
}

.md-ripple-wave {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  background: rgba(255, 240, 184, 0.38);
  animation: md-ripple-expand 580ms var(--md-sys-motion-emphasized-decelerate) forwards;
}

.md-icon-btn .md-ripple-wave,
.md-tonal-chip .md-ripple-wave,
.md-filled-tonal-btn .md-ripple-wave {
  background: rgba(130, 93, 21, 0.24);
}

@keyframes md-ripple-expand {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* ==========================================================================
   Material Design 3 Info Modal Dialog
   ========================================================================== */
.md-dialog {
  margin: auto;
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(460px, calc(100vw - 32px));
  width: 100%;
  color: var(--md-sys-color-on-surface);
}

.md-dialog::backdrop {
  background: var(--md-sys-color-scrim);
  backdrop-filter: blur(4px);
}

.md-dialog-surface {
  padding: 24px;
  border-radius: 28px;
  background: var(--md-sys-color-surface-container-high);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--md-sys-elevation-4);
}

.md-dialog-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.md-dialog-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-primary);
  font-size: 24px;
}

.md-dialog-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--md-sys-color-on-surface);
}

.md-dialog-subtitle {
  font-size: 0.86rem;
  color: var(--md-sys-color-on-surface-variant);
  margin-top: 2px;
}

.md-dialog-body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--md-sys-color-on-surface-variant);
}

.md-dialog-body strong {
  color: var(--md-sys-color-on-surface);
  font-weight: 500;
}

.md-dialog-body code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(130, 93, 21, 0.12);
  color: var(--md-sys-color-primary);
  font-size: 0.86em;
}

.md-hint-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.md-hint-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
}

.md-hint-list .material-symbols-rounded {
  font-size: 20px;
  color: var(--md-sys-color-primary);
  margin-top: 1px;
  flex-shrink: 0;
}

.md-dialog-meta {
  margin-top: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--md-sys-color-on-surface-variant);
}

.md-dialog-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(130, 93, 21, 0.18);
}

.md-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--md-sys-color-primary);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.md-text-link:hover {
  text-decoration: underline;
  opacity: 0.88;
}

.md-text-link .material-symbols-rounded {
  font-size: 18px;
  flex-shrink: 0;
}

.md-dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.md-filled-tonal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: box-shadow 180ms ease, filter 180ms ease;
}

.md-filled-tonal-btn:hover {
  box-shadow: var(--md-sys-elevation-1);
  filter: brightness(0.97);
}

/* ==========================================================================
   Noscript Fallback Information Card
   ========================================================================== */
.noscript-gallery-info {
  position: relative;
  z-index: 10;
  max-width: 720px;
  margin: 24px auto;
  padding: 24px 28px;
  border-radius: 16px;
  border: 2px solid #b88c31;
  background: rgba(24, 20, 15, 0.94);
  color: #f3e4bc;
  font-family: var(--font-ui);
  font-size: 0.94rem;
  line-height: 1.65;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.noscript-gallery-info h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #f7df97;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.noscript-gallery-info p + p {
  margin-top: 10px;
}

.noscript-gallery-info a {
  color: #f3d780;
  text-decoration: underline;
}

/* ==========================================================================
   Small Screens (<= 768px):
   ONLY ONE brocante golden painting with a crisp 14px silver border!
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --frame-thickness: 22px;
    --mat-thickness: 5px;
    --corner-size: 54px;
    --crest-w: 124px;
    --crest-h: 26px;
  }

  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
  }

  .site-header,
  .gallery-footer,
  .salon-frame-2,
  .salon-frame-3,
  .salon-frame-4 {
    display: none;
  }

  .gallery-stage,
  .salon-wall {
    width: 100%;
    height: 100%;
    padding: 0;
  }

  .salon-frame-1 {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100vw - 28px);
    height: calc(100dvh - 28px);
    --frame-thickness: 22px;
    --corner-size: 54px;
    --crest-w: 124px;
    --crest-h: 26px;
    border-radius: 4px;
    box-shadow:
      0 0 0 1px #4e3409,
      0 0 0 2px #b88c31,
      0 6px 18px rgba(20, 25, 34, 0.38),
      inset 2px 2px 2px rgba(255, 249, 218, 0.68),
      inset -2px -2px 3px rgba(54, 34, 5, 0.72),
      inset 0 0 0 4px rgba(173, 128, 38, 0.52),
      inset 0 0 10px 4px rgba(48, 30, 4, 0.4);
  }

  .frame-molding-outer {
    inset: 4px;
    border-width: 1px;
  }

  .frame-beaded-trim {
    inset: calc(var(--frame-thickness) - 6px);
    border-width: 2px;
  }

  .filigree-tl { top: -4px; left: -4px; }
  .filigree-tr { top: -4px; right: -4px; }
  .filigree-bl { bottom: -4px; left: -4px; }
  .filigree-br { bottom: -4px; right: -4px; }
  .filigree-top { top: -5px; }

  .frame-nameplate {
    bottom: 2px;
    max-width: calc(100% - 26px);
    padding: 3px 14px;
    font-family: var(--font-display);
    font-size: clamp(0.72rem, 3vw, 0.88rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nameplate-desktop-title {
    display: none;
  }

  .nameplate-mobile-brand {
    display: inline-flex;
    align-items: center;
  }

  .edge-trigger {
    width: 24%;
    min-width: 58px;
  }

  .edge-prev {
    padding-left: 8px;
  }

  .edge-next {
    padding-right: 8px;
  }

  .edge-chevron-pill {
    opacity: 0.44;
    width: 38px;
    height: 38px;
    transform: scale(1);
  }
}

/* ==========================================================================
   Reduced Motion Preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .painting-frame,
  .painting-slide,
  .edge-chevron-pill {
    transition-duration: 0.01ms !important;
  }

  .md-ripple-wave {
    display: none;
  }
}
