.gallery-layout{display:grid;grid-template-columns:repeat(var(--gallery-columns,3),minmax(0,1fr));gap:18px;align-items:start}.gallery-layout__item{margin:0;min-width:0;border:1px solid #54482f;border-radius:12px;overflow:hidden;background:#121314;color:#eee8dc;break-inside:avoid}.gallery-layout__item[hidden]{display:none!important}.gallery-layout__image{display:block;width:100%;padding:0!important;border:0!important;background:#08090a!important;border-radius:0!important;cursor:zoom-in;min-height:0!important}.gallery-layout__image img{display:block;width:100%;height:100%;aspect-ratio:4/3;object-fit:var(--gallery-fit,contain)}.gallery-layout figcaption{padding:1rem;overflow-wrap:anywhere}.gallery-layout figcaption strong{font:600 1rem Georgia,serif}.gallery-layout figcaption p{white-space:pre-wrap;line-height:1.55;font-size:.85rem;margin:.5rem 0 0}.gallery-layout--masonry{display:block;columns:var(--gallery-columns,3);column-gap:18px}.gallery-layout--masonry .gallery-layout__item{margin:0 0 18px}.gallery-layout--masonry img{height:auto;aspect-ratio:auto}.gallery-layout--editorial .gallery-layout__item:first-child{grid-column:1/-1}.gallery-layout--editorial .gallery-layout__item:first-child img{aspect-ratio:21/9}.gallery-layout--slideshow{display:block}.gallery-layout--slideshow img{height:min(65vh,620px);aspect-ratio:auto}.gallery-layout__controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:1rem;margin-top:1rem}.gallery-layout__controls button{padding:.7rem 1rem;min-height:44px;color:#eee8dc;background:#332a1b;border:1px solid #b79a55;border-radius:8px;cursor:pointer}.gallery-layout :focus-visible{outline:2px solid #e7c977;outline-offset:3px}@media(max-width:800px){.gallery-layout{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-layout--masonry{columns:2}}@media(max-width:480px){.gallery-layout{grid-template-columns:1fr}.gallery-layout--masonry{columns:1}.gallery-layout--editorial .gallery-layout__item:first-child img{aspect-ratio:4/3}}
