.completed { background: #0b0b0b; }
.gallery { max-width: 1180px; margin: 0 auto; }
.gallery-stage { position: relative; height: clamp(340px, 46vw, 600px); overflow: hidden; background: radial-gradient(circle at 50% 35%, #272727 0%, #141414 44%, #080808 100%); border: 1px solid rgba(255,255,255,.1); }
.gallery-stage::before { content: ""; position: absolute; inset: -36px; background-image: var(--gallery-photo); background-position: center; background-size: cover; filter: blur(32px); opacity: .2; pointer-events: none; }
.gallery-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(229,9,20,.13), rgba(0,0,0,.13) 60%); pointer-events: none; }
.gallery-main { display: flex; align-items: center; justify-content: center; position: absolute; inset: 0; width: 100%; height: 100%; padding: 22px 80px; cursor: zoom-in; background: transparent; border: 0; }
.gallery-main img { display: block; width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; animation: gallery-appear .4s ease both; }
.gallery-zoom { position: absolute; z-index: 2; right: 22px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 10px 13px; color: #fff; background: rgba(0,0,0,.66); backdrop-filter: blur(12px); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transition: background .2s ease, transform .2s ease; }
.gallery-zoom span { color: #f32631; font-size: 17px; line-height: 0; }
.gallery-main:hover .gallery-zoom { background: #c70c16; transform: translateY(-2px); }
.gallery-main:hover .gallery-zoom span { color: #fff; }
.gallery-arrow, .lightbox-arrow { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: white; background: rgba(8,8,8,.68); cursor: pointer; font-size: 22px; line-height: 1; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.gallery-arrow { position: absolute; z-index: 2; top: 50%; width: 48px; height: 48px; transform: translateY(-50%); }
.gallery-arrow:hover { background: #e50914; border-color: #e50914; transform: translateY(-50%) scale(1.07); }
.gallery-arrow-prev { left: 20px; }
.gallery-arrow-next { right: 20px; }
.gallery-info { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 20px 0 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.gallery-info > div { display: flex; align-items: baseline; gap: 22px; min-width: 0; }
.gallery-count { flex: none; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.gallery-count i { padding: 0 5px; color: #e50914; font-style: normal; }
.gallery-info p { overflow: hidden; color: #b8b8b8; font-size: 13px; line-height: 1.4; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.gallery-hint { flex: none; color: #777; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gallery-thumbs { display: flex; gap: 10px; padding: 20px 1px 8px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb { position: relative; flex: 0 0 92px; height: 72px; padding: 0; border: 2px solid transparent; background: #1a1a1a; cursor: pointer; opacity: .58; overflow: hidden; scroll-snap-align: start; transition: opacity .2s ease, border-color .2s ease, transform .2s ease; }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: .9; transform: translateY(-3px); }
.gallery-thumb.is-active { border-color: #e50914; opacity: 1; }
.gallery-lightbox { position: fixed; z-index: 100; inset: 0; display: flex; justify-content: center; align-items: center; padding: 70px 88px 90px; color: #fff; background: rgba(0,0,0,.94); backdrop-filter: blur(14px); animation: gallery-appear .2s ease both; }
.gallery-lightbox[hidden] { display: none; }
.completed.gallery-ready .completed-grid { display: none; }
.gallery-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 70px rgba(0,0,0,.45); }
.lightbox-close { position: absolute; top: 19px; right: 25px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: rgba(40,40,40,.6); cursor: pointer; font-size: 28px; line-height: 1; }
.lightbox-close:hover { background: #e50914; border-color: #e50914; }
.lightbox-arrow { position: absolute; top: 50%; width: 48px; height: 48px; transform: translateY(-50%); }
.lightbox-arrow:hover { background: #e50914; border-color: #e50914; transform: translateY(-50%) scale(1.07); }
.lightbox-prev { left: 25px; }
.lightbox-next { right: 25px; }
.lightbox-caption { position: absolute; bottom: 26px; left: 24px; right: 24px; color: #c9c9c9; font-size: 12px; line-height: 1.4; margin: 0; text-align: center; }
.gallery button:focus-visible, .gallery-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes gallery-appear { from { opacity: .4; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 800px) {
  .gallery-stage { height: clamp(330px, 95vw, 540px); }
  .gallery-main { padding: 14px 54px; }
  .gallery-arrow { width: 38px; height: 38px; font-size: 18px; }
  .gallery-arrow-prev { left: 8px; }
  .gallery-arrow-next { right: 8px; }
  .gallery-zoom { right: 10px; bottom: 10px; }
  .gallery-info { align-items: start; }
  .gallery-info > div { display: block; }
  .gallery-info p { max-width: 80vw; margin-top: 8px; white-space: normal; }
  .gallery-hint { display: none; }
  .gallery-thumb { flex-basis: 76px; height: 62px; }
  .gallery-lightbox { padding: 68px 14px 78px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-arrow { top: auto; bottom: 16px; transform: none; width: 38px; height: 38px; }
  .lightbox-arrow:hover { transform: scale(1.07); }
  .lightbox-caption { bottom: 26px; left: 58px; right: 58px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-main img, .gallery-lightbox { animation: none; }
  .gallery-arrow, .lightbox-arrow, .gallery-thumb, .gallery-zoom { transition: none; }
}
