/* Public gallery only. The upload screen keeps the shared album theme. */
.gallery-page {
  --paper: #fffcfa;
  --surface: #fffdfc;
  --ink: #39272e;
  --muted: #705761;
  --line: #e8d5da;
  --pale: #f7ecee;
  --rose: #96566b;
  --deep-rose: #783f53;
  --danger: #8e354d;
  display: flex;
  flex-direction: column;
}

.gallery-page :focus-visible { outline-color: var(--deep-rose); }
.gallery-page .shell { max-width: 67rem; }
.gallery-page .site-header { min-height: 4.6rem; }
.gallery-page .brand { gap: .57rem; font-size: 1rem; letter-spacing: .08em; }
.gallery-page .gallery-mark { display: block; flex: 0 0 34px; color: var(--rose); }

.gallery-page .hero {
  grid-template-columns: minmax(0, 1fr) clamp(5.8rem, 20vw, 10.9rem);
  gap: clamp(.5rem, 2vw, 1.65rem);
  padding: clamp(1.35rem, 3.6vw, 2.6rem) clamp(1.2rem, 4vw, 3rem);
  border: 1px solid #eedde1;
  border-radius: 1rem;
  background: #faeff0;
  color: var(--ink);
}
.gallery-page .hero h1 {
  font-weight: 700;
  font-size: clamp(1.95rem, 5.2vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.gallery-page .hero h1 span { color: var(--rose); }
.gallery-page .hero-copy > p:last-child { margin-top: .67rem; color: var(--muted); }
.gallery-page .gallery-sprig {
  display: block;
  width: 100%;
  height: auto;
  justify-self: end;
  stroke: #a76579;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gallery-page .gallery-sprig-wash { fill: #f4e0e6; stroke: none; }

.gallery-page .gallery { min-height: auto; padding: clamp(1.6rem, 4vw, 2.85rem) 0 clamp(2rem, 5vw, 4rem); }
.gallery-page .section-copy h2 { color: var(--ink); font-size: clamp(1.45rem, 2.8vw, 1.95rem); }
.gallery-page .count { border-color: #e8d1d8; background: var(--pale); }
.gallery-page .gallery-message { min-height: 10.75rem; border: 1px solid var(--line); border-radius: .85rem; background: #fcf7f6; }
.gallery-page .empty-icon { width: 2.4rem; height: 2.4rem; stroke: var(--rose); }
.gallery-page .message-title { font-weight: 660; }
.gallery-page .photo-card { border-radius: .8rem; }
.gallery-page .photo-card:hover { border-color: #be8d9b; }
.gallery-page .photo-card:hover img { transform: scale(1.02); }
.gallery-page .photo-meta strong { font-weight: 650; }
.gallery-page .button-secondary { border-color: #ddbfc8; color: var(--deep-rose); }
.gallery-page .button-secondary:not(:disabled):hover { border-color: #b77e91; background: var(--pale); }
.gallery-page .site-footer { margin-top: auto; color: var(--muted); }

.gallery-page .lightbox { border-color: #765564; background: #2c1e25; color: #fff7f8; }
.gallery-page .lightbox::backdrop { background: #21151cde; }
.gallery-page .lightbox-count,
.gallery-page .lightbox-foot p { color: #e3ccd4; }
.gallery-page .lightbox-foot h2 { color: #fff8f9; }
.gallery-page .lightbox :focus-visible { outline-color: #e8a8bc; }
.gallery-page .icon-button { border-color: #987581; background: #47303c; color: #fff7f8; }
.gallery-page .icon-button:not(:disabled):hover { background: #5b3c4c; }

@media (max-width: 40rem) {
  .gallery-page .site-header { min-height: 4rem; }
  .gallery-page .hero { grid-template-columns: minmax(0, 1fr) clamp(4.35rem, 19vw, 7rem); }
  .gallery-page .hero h1 { font-size: clamp(1.65rem, 5.5vw, 2.4rem); }
  .gallery-page .hero-copy > p:last-child { margin-top: .5rem; }
  .gallery-page .gallery-sprig { stroke-width: 1.8; }
}

@media (max-width: 22rem) {
  .gallery-page .hero { grid-template-columns: minmax(0, 1fr) 3.55rem; }
  .gallery-page .gallery-sprig { transform: scale(1.12); }
}
