.gallery-shell { max-width: 1200px; padding-bottom: 36px; }
.gallery-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 28px 6px 36px; }
.gallery-hero h1 { margin-top: 8px; font-size: clamp(44px,6.5vw,74px); letter-spacing: -.065em; }
.gallery-hero p { margin-top: 9px; color: var(--ink-3); font-size: 14px; }
.gallery-hero__label { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--chip-bg); color: var(--ink-3); font: 800 9px var(--mono); letter-spacing: .13em; }
.gallery-loading { padding: 48px 24px; text-align: center; color: var(--ink-3); }
.gallery-loading--error { color: var(--bad); }
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.gallery-grid--empty { display: block; }
.gallery-card { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; min-height: 420px; padding: 0; overflow: hidden; border-radius: 28px; text-align: left; cursor: zoom-in; }
.gallery-card__photo { width: 100%; height: 100%; object-fit: cover; transition: transform .48s ease; }
.gallery-card:hover .gallery-card__photo { transform: scale(1.035); }
.gallery-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 50%,rgba(4,10,22,.82) 100%); }
.gallery-card__identity { position: absolute; right: 18px; bottom: 17px; left: 18px; display: flex; align-items: center; gap: 9px; color: white; }
.gallery-card__avatar { flex: none; width: 39px; height: 39px; border: 1.5px solid rgba(255,255,255,.76); border-radius: 12px; box-shadow: 0 7px 18px rgba(0,0,0,.28); }
.gallery-card__identity > span > span, .gallery-card__identity small, .gallery-card__identity b { display: block; }
.gallery-card__identity small { font: 750 7px var(--mono); letter-spacing: .12em; opacity: .7; }
.gallery-card__identity b { margin-top: 1px; font-size: 13px; }
.gallery-card__zoom { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(5,12,28,.25); color: white; font-size: 15px; backdrop-filter: blur(9px); }

.photo-dialog { width: min(92vw,900px); max-height: 94vh; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 26px; background: #080d1c; color: white; box-shadow: 0 35px 100px rgba(0,0,0,.56); }
.photo-dialog::backdrop { background: rgba(2,5,14,.84); backdrop-filter: blur(9px); }
.photo-dialog__photo { display: grid; place-items: center; max-height: calc(94vh - 68px); background: #050913; }
.photo-dialog__photo img { width: 100%; height: 100%; max-height: calc(94vh - 68px); object-fit: contain; }
.photo-dialog__close { position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 13px; background: rgba(4,9,22,.5); color: white; font-size: 23px; line-height: 1; backdrop-filter: blur(10px); }
.photo-dialog__identity { display: flex; align-items: center; gap: 9px; height: 68px; padding: 10px 17px; background: #0b1226; }
.photo-dialog__identity > div { flex: none; }
.photo-dialog__avatar { width: 38px; height: 38px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 12px; }
.photo-dialog__identity > span { font-size: 13px; font-weight: 800; }

@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .gallery-card { min-height: 450px; } }
@media (max-width: 620px) { .gallery-hero { align-items: flex-start; padding-top: 20px; } .gallery-hero__label { display: none; } .gallery-grid { grid-template-columns: 1fr; } .gallery-card { min-height: 0; aspect-ratio: 4 / 5; border-radius: 24px; } .photo-dialog { width: 96vw; border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) { .gallery-card__photo { transition: none; } }
