/* =========================================================
   photo-gallery.css - image-only gallery (home preview + full page)
   Same look as the Art Collection, without the text details
   ========================================================= */

/* ---------- Home section ---------- */
.pg-section .section-heading { align-items: flex-end; }
.pg-section .section-heading > p { max-width: 380px; font-size: 14px; line-height: 1.8; margin: 0; }
.pg-more { display: flex; justify-content: center; margin-top: 34px; }
.pg-more .festival-button { min-height: 50px; padding-inline: 30px; border-color: var(--hero-accent); color: var(--hero-accent); font-size: 14px; }
.pg-more .festival-button:hover { background: var(--hero-accent); color: var(--on-image); border-color: var(--hero-accent); }

/* ---------- Grid: photos keep their own shape, so there is no empty space ---------- */
.pg-grid { column-count: 2; column-gap: 14px; }
@media (min-width: 700px)  { .pg-grid { column-count: 3; column-gap: 22px; } }
@media (min-width: 1000px) { .pg-grid--full { column-count: 4; } }
.pg-page { max-width: 1280px; }
.pg-count { margin: 0 0 22px; font-size: 13px; font-weight: 600; color: var(--muted-foreground); }

/* ---------- Photo card ---------- */
.pg-card { --c: var(--red); display: block; width: 100%; margin: 0 0 14px; padding: 0; font: inherit; border: 0; border-bottom: 3px solid var(--c); border-radius: 10px; background: var(--muted); overflow: hidden; cursor: zoom-in; break-inside: avoid; transition: transform .3s, box-shadow .3s; }
@media (min-width: 700px) { .pg-card { margin-bottom: 22px; } }
.pg-card:nth-child(3n+2) { --c: var(--blue); }
.pg-card:nth-child(3n)   { --c: var(--yellow); }
.pg-card[hidden] { display: none; }
.pg-card:hover, .pg-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.pg-frame { display: block; }
.pg-frame img { display: block; width: 100%; height: auto; min-height: 120px; object-fit: cover; }

/* ---------- Viewer ---------- */
.pg-lightbox { width: min(96vw, 1100px); max-height: 94vh; padding: 0; border: 0; border-radius: 14px; background: #101418; color: #fff; overflow: hidden; }
.pg-lightbox::backdrop { background: rgba(10, 14, 18, .85); backdrop-filter: blur(4px); }
.pg-lb-stage { position: relative; display: grid; place-items: center; min-height: 260px; }
.pg-lb-stage img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; }
.pg-lb-count { position: absolute; left: 14px; bottom: 12px; padding: 4px 12px; border-radius: 99px; background: rgba(0, 0, 0, .55); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.pg-lb-close, .pg-lb-nav { position: absolute; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #111; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 3px 14px rgba(0, 0, 0, .35); }
.pg-lb-close { top: 10px; right: 10px; font-size: 24px; }
.pg-lb-nav { top: 50%; translate: 0 -50%; }
.pg-lb-prev { left: 10px; } .pg-lb-next { right: 10px; }
.pg-lb-close:hover, .pg-lb-nav:hover { background: var(--hero-accent); color: #fff; }
@media (prefers-reduced-motion: reduce) { .pg-card { transition: none; } }
