/* Gallery page (Expo / Factory -> Photos + Videos) */
.gal-hero { padding: 130px 40px 10px; text-align: center; }
.gal-hero .section-tag { justify-content: center; margin-bottom: 18px; }
.gal-title { font-family: "DM Serif Display", serif; font-weight: 400; font-size: clamp(36px, 5vw, 68px); line-height: 1.08; letter-spacing: -0.02em; color: var(--text); }
.gal-sub { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 640px; margin: 16px auto 0; }
.gal-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 980px; margin: 38px auto 0; }
.gal-opt { position: relative; text-align: left; font-family: inherit; color: var(--text); cursor: pointer; background: var(--bg2); border: 1px solid var(--border); border-radius: 22px; padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 8px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.gal-opt:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: 0 16px 36px rgba(0, 0, 0, .28); }
.gal-opt .ico { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--red-dim); color: var(--red); margin-bottom: 8px; }
.gal-opt .ico svg { width: 30px; height: 30px; }
.gal-opt h2 { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 34px; line-height: 1.1; }
.gal-opt p { color: var(--muted); font-size: 14px; }
.gal-opt .cnt { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.gal-opt .cnt span { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--border2); padding: 4px 12px; border-radius: 99px; }
.gal-opt .go { position: absolute; right: 24px; top: 26px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg3); color: var(--text); transition: background .2s, color .2s; }
.gal-opt .go svg { width: 18px; height: 18px; }
.gal-opt.on { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.gal-opt.on .go, .gal-opt:hover .go { background: var(--red); color: #fff; }

.gal-body { max-width: 1320px; margin: 0 auto; padding: 34px 40px 100px; scroll-margin-top: 80px; }
.gal-body[hidden] { display: none; }
.gal-pick-hint { text-align: center; color: var(--muted); font-size: 14px; margin: 26px 0 0; }
.gal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.gal-head h2 { font-family: "DM Serif Display", serif; font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); }
.gal-switch { display: flex; gap: 8px; }
.gal-switch button { font: 600 13px "DM Sans", sans-serif; padding: 9px 18px; border-radius: 999px; cursor: pointer; border: 1px solid var(--border2); background: transparent; color: var(--muted); }
.gal-switch button.on { background: var(--red); border-color: var(--red); color: #fff; }

.gal-block { margin-top: 38px; }
.gal-block > h3 { display: flex; align-items: center; gap: 12px; font-family: "DM Serif Display", serif; font-weight: 400; font-size: 30px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border2); }
.gal-block > h3 .n { font: 600 12px "DM Sans", sans-serif; letter-spacing: .04em; color: #fff; background: var(--red); padding: 4px 12px; border-radius: 99px; }
.gal-empty { color: var(--muted); border: 1px dashed var(--border2); border-radius: 16px; padding: 34px 20px; text-align: center; font-size: 14px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.photo { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--bg3); font-family: inherit; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.photo:hover img { transform: scale(1.06); }
.photo .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; text-align: left; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.4; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.photo:hover .cap, .photo:focus-visible .cap { opacity: 1; transform: none; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(390px, 1fr)); gap: 20px; }
.vcard { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.vframe { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vframe video, .vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vplay { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #111 center / cover no-repeat; display: flex; align-items: center; justify-content: center; }
.vplay::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); transition: background .2s; }
.vplay:hover::after { background: rgba(0, 0, 0, .1); }
.vplay .pb { position: relative; z-index: 1; width: 74px; height: 74px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: transform .2s; }
.vplay:hover .pb { transform: scale(1.1); }
.vplay .pb svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.vplay .ph { position: relative; z-index: 1; color: #bbb; font: 600 14px "DM Sans", sans-serif; }
.vtitle { padding: 14px 18px 16px; font-size: 15px; font-weight: 500; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 10050; background: rgba(8, 8, 12, .94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 56px 70px 66px; }
.lb.on { display: flex; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 70px rgba(0, 0, 0, .6); user-select: none; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #e8e6ee; font-size: 14px; padding: 0 70px; }
.lb-n { position: absolute; left: 24px; top: 20px; color: #bbb; font: 600 13px "DM Sans", sans-serif; }
.lb button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lb button:hover { background: var(--red); }
.lb button svg { width: 22px; height: 22px; }
.lb-x { right: 20px; top: 16px; } .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); } .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

@media (max-width: 768px) {
  .gal-hero { padding: 100px 20px 6px; }
  .gal-choose { grid-template-columns: 1fr; gap: 14px; }
  .gal-opt { padding: 22px; } .gal-opt h2 { font-size: 28px; }
  .gal-body { padding: 24px 16px 70px; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .video-grid { grid-template-columns: 1fr; }
  .photo .cap { opacity: 1; transform: none; font-size: 11px; padding: 22px 10px 8px; }
  .lb { padding: 56px 12px 70px; } .lb-cap { padding: 0 14px; } .lb-prev { left: 6px; } .lb-next { right: 6px; } .lb button { width: 42px; height: 42px; }
}
@media (max-width: 420px) { .photo-grid { grid-template-columns: 1fr; } }
