.event-gallery{margin-block:40px;padding:clamp(18px,3vw,32px);border:1px solid #e4d8cc;border-radius:26px;background:linear-gradient(135deg,#fff 35%,#f8f0e5);overflow:hidden;box-shadow:0 16px 40px #57232906}
.event-gallery-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.event-gallery-head .overline{margin:0 0 8px;font-size:16px}.event-gallery h4{margin:0 0 10px;font-size:clamp(23px,2.6vw,32px)}.event-gallery-head p{margin:0;color:var(--muted);font-size:16px;line-height:1.8}.event-gallery-count{flex-shrink:0;border:1px solid #d6c5b2;border-radius:999px;padding:9px 15px;color:var(--wine);font-size:15px;white-space:nowrap}
.event-gallery-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,25%);gap:24px;align-items:start}.event-photo-stage{margin:0;min-width:0;overflow:hidden;border-radius:17px;background:#211c1a;box-shadow:0 10px 28px #2e152a16}.event-photo-expand{display:block;position:relative;border:0;padding:0;width:100%;background:none;cursor:zoom-in;color:#fff}.event-photo-expand img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:#211c1a}.event-photo-expand span{position:absolute;bottom:14px;inset-inline-end:14px;padding:8px 13px;border:1px solid #fff3;border-radius:999px;background:#1d171bd9;font-size:14px;backdrop-filter:blur(8px)}.event-photo-stage figcaption{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;color:#f7ead7;font-size:13px;line-height:1.8}.event-photo-stage figcaption b{color:#eabe68;white-space:nowrap;direction:ltr}
.event-gallery-picker{min-width:0}.event-picker-title{font-size:16px;font-weight:700;color:var(--wine);margin-bottom:12px}.event-photo-thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:430px;overflow:auto;padding:2px 4px 4px;scrollbar-width:thin;scrollbar-color:#c7aa89 transparent}.event-photo-thumbs button{position:relative;padding:3px;border:2px solid transparent;border-radius:11px;background:transparent;cursor:pointer;transition:border-color .2s,transform .2s;min-width:0}.event-photo-thumbs button[aria-pressed=true]{border-color:var(--wine);background:#fff}.event-photo-thumbs img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:6px}.event-photo-thumbs button>span{position:absolute;bottom:7px;inset-inline-start:7px;color:#fff;font-size:12px;background:#30121bcc;padding:1px 5px;border-radius:4px}.event-photo-thumbs button:hover{border-color:#d59535;transform:translateY(-2px)}.event-photo-thumbs button:focus-visible,.event-photo-expand:focus-visible{outline:3px solid #d59535;outline-offset:1px}
.event-gallery-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding-top:20px;margin-top:20px;border-top:1px solid #e5d9cb;color:var(--muted);font-size:14px}.event-photo-credits{display:flex;flex-wrap:wrap;gap:12px 22px}.event-photo-credits a{font-size:14px;color:var(--wine)}
.event-photo-dialog{padding:20px;margin:auto;inset:0;width:min(1180px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);border:1px solid #a3866a66;border-radius:22px;background:#211c1a;color:#fff;overflow:auto}.event-photo-dialog::backdrop{background:#100b0bef;backdrop-filter:blur(8px)}.event-photo-dialog header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px;font-size:16px;line-height:1.8}.event-photo-dialog img{display:block;width:100%;height:calc(100dvh - 200px);min-height:140px;object-fit:contain}.event-photo-dialog button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;border:1px solid #ad927c;color:#f8e7c9;background:#fff1;font-size:23px;cursor:pointer;flex-shrink:0}.event-photo-dialog button:hover{background:#b2864629}.event-photo-dialog button:focus-visible{outline:3px solid #f5bf62;outline-offset:3px}.event-photo-dialog-controls{display:flex;align-items:center;justify-content:center;gap:22px;padding-top:16px}.event-photo-dialog-controls span{direction:ltr;color:#e7ba68;font-size:16px}.event-photo-dialog button svg{width:20px;fill:none;stroke:currentColor;stroke-width:1.7}.event-photo-dialog[open]{animation:photo-open .25s ease-out}.event-photo-dialog figure{margin:0}.event-photo-dialog .photo-dialog-close{font-size:26px}
@keyframes photo-open{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:850px){.event-gallery-layout{grid-template-columns:1fr;gap:18px}.event-photo-thumbs{display:flex;max-height:none;overflow-x:auto;padding-bottom:7px;scroll-snap-type:x proximity}.event-photo-thumbs button{flex:0 0 110px;scroll-snap-align:center}.event-picker-title{margin-bottom:8px}.event-gallery-footer{margin-top:12px}}
@media(max-width:600px){.event-gallery{border-radius:20px;padding:16px}.event-gallery-head{align-items:flex-start;gap:12px;margin-bottom:20px}.event-gallery-count{padding:6px 9px;font-size:13px}.event-gallery-head p{font-size:14px}.event-photo-stage figcaption{padding:12px;font-size:12px}.event-photo-expand span{font-size:12px;padding:6px 10px;bottom:10px;inset-inline-end:10px}.event-photo-thumbs button{flex-basis:90px}.event-gallery-footer>span{display:none}.event-photo-dialog{padding:14px;border-radius:17px}.event-photo-dialog header{font-size:13px}.event-photo-dialog img{height:calc(100dvh - 210px)}}
@media(prefers-reduced-motion:reduce){.event-photo-thumbs button,.event-photo-dialog{animation:none!important;transition:none!important}}
