.ob-event-gallery { background:#f1eadc; border-block:1px solid #d8c49c; }
.ob-event-gallery-heading { max-width:820px; margin:0 0 32px; }
.ob-event-gallery h2 { font-size:clamp(30px,4vw,52px); font-weight:400; line-height:1.12; letter-spacing:-1px; margin:18px 0 24px; }
.ob-event-gallery-heading p { font-size:18px; line-height:1.75; color:#51432e; }
.ob-event-gallery-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:24px; align-items:start; }
.ob-event-gallery-grid figure { margin:0; min-width:0; }
.ob-event-gallery-grid a { display:block; position:relative; border-radius:12px; overflow:hidden; background:#e3d6bf; }
.ob-event-gallery-grid img { display:block; width:100%; height:auto; aspect-ratio:4/5; object-fit:contain; }
.ob-gallery-zoom { position:absolute; bottom:12px; right:12px; border-radius:20px; padding:9px 14px; background:#fffaf1; color:#51432e; font-size:12px; line-height:1.5; }
.ob-event-gallery-grid a:focus-visible { outline:3px solid #6d4a16; outline-offset:5px; }
.ob-event-gallery-grid figcaption { padding:14px 2px; color:#51432e; font-size:15px; line-height:1.6; }
.ob-gallery-note { font-size:13px; color:#655947; line-height:1.7; margin:16px 0 24px; }
.ob-gallery-lightbox { box-sizing:border-box; width:min(95vw,1100px); max-width:none; max-height:94vh; max-height:94dvh; margin:auto; padding:18px; border:1px solid #d8c49c; border-radius:14px; background:#fffaf1; color:#30281c; overflow:auto; }
.ob-gallery-lightbox::backdrop { background:#17130ee6; }
.ob-gallery-lightbox[open] { display:flex; flex-direction:column; gap:12px; }
.ob-gallery-top,.ob-gallery-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-shrink:0; }
.ob-gallery-top h2 { font:500 18px/1.4 'DM Sans',sans-serif; letter-spacing:0; margin:0; }
.ob-gallery-lightbox button { min-width:44px; min-height:44px; padding:10px 15px; border:1px solid #a5844e; background:#fffaf1; color:#514020; border-radius:7px; font:500 15px/1.4 'DM Sans',sans-serif; cursor:pointer; }
.ob-gallery-lightbox button:hover { background:#eee5d4; }
.ob-gallery-lightbox button:focus-visible { outline:3px solid #6d4a16; outline-offset:3px; }
.ob-gallery-view { margin:0; min-height:0; }
.ob-gallery-view img { display:block; width:auto; height:auto; max-width:100%; max-height:calc(94vh - 205px); max-height:calc(94dvh - 205px); object-fit:contain; margin:0 auto; border-radius:6px; }
.ob-gallery-view figcaption { padding:12px 0 0; text-align:center; font-size:15px; line-height:1.5; }
.ob-gallery-count { font-size:14px; white-space:nowrap; }
@media(max-width:600px) {
  .ob-event-gallery-grid { grid-template-columns:1fr; gap:22px; }
  .ob-gallery-lightbox { padding:12px; }
  .ob-gallery-top h2 { font-size:16px; }
  .ob-gallery-lightbox button { padding:10px 12px; }
  .ob-gallery-view figcaption { font-size:13px; }
}
