/* Responsive Stay galleries; assets load only on single place pages. */
.ogd-stay-responsive-gallery{--mdg-ink:#193b2e;--mdg-line:#d7dfd0;--mdg-cream:#f5f6ef;width:100%;min-width:0;font-family:Questrial,Arial,sans-serif}
.ogd-stay-responsive-gallery .mdg-stage{position:relative;isolation:isolate}
.ogd-stay-responsive-gallery .mdg-photos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;aspect-ratio:3/1;margin:0!important;padding:0!important;list-style:none;overflow:hidden;border-radius:16px}
.ogd-stay-responsive-gallery .mdg-photo{display:block;position:relative;min-width:0;min-height:0;margin:0!important;padding:0!important;overflow:hidden;background:var(--mdg-cream)}
.ogd-stay-responsive-gallery .mdg-photo:first-child{grid-column:1/3;grid-row:1/3}
.ogd-stay-responsive-gallery .mdg-photo:nth-child(2){grid-column:3;grid-row:1}
.ogd-stay-responsive-gallery .mdg-photo:nth-child(3){grid-column:4;grid-row:1}
.ogd-stay-responsive-gallery .mdg-photo:nth-child(4){grid-column:3;grid-row:2}
.ogd-stay-responsive-gallery .mdg-photo:nth-child(5){grid-column:4;grid-row:2}
.ogd-stay-responsive-gallery .mdg-photo:nth-child(n+6){display:none}
.ogd-stay-responsive-gallery .mdg-photo>a{display:block;position:absolute;inset:0;width:100%;height:100%;overflow:hidden;background:var(--mdg-cream)}
.ogd-stay-responsive-gallery .mdg-photo .mdg-image{display:block;width:100%;height:100%;max-width:none;object-fit:cover;transition:filter .18s ease}
.ogd-stay-responsive-gallery .mdg-photo>a:hover .mdg-image{filter:brightness(.95)}
.ogd-stay-responsive-gallery .mdg-photo.is-portrait .mdg-image{object-fit:contain}
.ogd-stay-responsive-gallery button{font-family:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.ogd-stay-responsive-gallery button:focus-visible,.ogd-stay-responsive-gallery a:focus-visible{outline:3px solid #5d8745;outline-offset:-4px}
.ogd-stay-responsive-gallery .mdg-all{display:none;position:absolute;right:16px;bottom:16px;z-index:2;align-items:center;gap:10px;min-height:44px;padding:10px 16px;border:1px solid #ffffffa6;border-radius:9px;background:#fffffff2;color:var(--mdg-ink);font-size:13px;line-height:1.25;font-weight:700;box-shadow:0 2px 12px #16332824}
.ogd-stay-responsive-gallery.is-ready .mdg-all{display:inline-flex}
.ogd-stay-responsive-gallery .mdg-all:hover{background:#fff}
.ogd-stay-responsive-gallery .mdg-nav,.ogd-stay-responsive-gallery .mdg-counter,.ogd-stay-responsive-gallery .mdg-caption,.ogd-stay-responsive-gallery .mdg-thumbnails{display:none}
@media(max-width:1024px){
 .ogd-stay-responsive-gallery .mdg-photos{display:flex;gap:0;grid-template-columns:none;grid-template-rows:none;aspect-ratio:3/2;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;scroll-behavior:smooth;border-radius:14px}
 .ogd-stay-responsive-gallery .mdg-photos::-webkit-scrollbar,.ogd-stay-responsive-gallery .mdg-thumbnails::-webkit-scrollbar{display:none}
 .ogd-stay-responsive-gallery .mdg-photo,.ogd-stay-responsive-gallery .mdg-photo:nth-child(n+6){display:block;flex:0 0 100%;width:100%;height:100%;scroll-snap-align:start;scroll-snap-stop:always}
 .ogd-stay-responsive-gallery .mdg-photo .mdg-image{filter:none}
 .ogd-stay-responsive-gallery.is-ready .mdg-counter{display:block;position:absolute;right:13px;top:13px;padding:6px 10px;border-radius:20px;background:#162c24bf;color:#fff;font-size:12px;line-height:1.2;pointer-events:none;z-index:2;font-variant-numeric:tabular-nums}
 .ogd-stay-responsive-gallery.is-ready .mdg-nav{display:flex;justify-content:space-between;position:absolute;left:10px;right:10px;top:calc(50% - 22px);pointer-events:none;z-index:2}
 .ogd-stay-responsive-gallery .mdg-nav button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:1px solid #ffffffc7;border-radius:50%;background:#fffffff0;color:var(--mdg-ink);box-shadow:0 2px 12px #16332824;font-size:30px;line-height:1;pointer-events:auto}
 .ogd-stay-responsive-gallery .mdg-nav button span{transform:translateY(-1px)}
 .ogd-stay-responsive-gallery .mdg-nav button:disabled{visibility:hidden;pointer-events:none}
 .ogd-stay-responsive-gallery .mdg-all{right:12px;bottom:12px;font-size:12px;padding:10px 12px}
 .ogd-stay-responsive-gallery .mdg-caption{display:block;color:#657261;font-size:12px;line-height:1.5;margin:10px 0 8px!important;min-height:18px}
 .ogd-stay-responsive-gallery.is-ready .mdg-thumbnails{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:3px 2px 5px;margin:0;scroll-padding:2px}
 .ogd-stay-responsive-gallery .mdg-thumbnails button{display:block;flex:0 0 76px;width:76px;height:54px;padding:3px;border:2px solid transparent;border-radius:9px;background:transparent}
 .ogd-stay-responsive-gallery .mdg-thumbnails button[aria-pressed=true]{border-color:#426944;background:#f0f4e9}
 .ogd-stay-responsive-gallery .mdg-thumbnail{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px}
}
@media(min-width:768px) and (max-width:1024px){.ogd-stay-responsive-gallery .mdg-thumbnails button{flex-basis:88px;width:88px;height:62px}.ogd-stay-responsive-gallery .mdg-caption{font-size:13px}}
@media(prefers-reduced-motion:reduce){.ogd-stay-responsive-gallery .mdg-photos{scroll-behavior:auto}.ogd-stay-responsive-gallery .mdg-image{transition:none}}

/* Keep phone controls quiet; preserve their 44px navigation hit areas. */
.ogd-stay-responsive-gallery .mdg-all-icon,.ogd-stay-responsive-gallery .mdg-all-short{display:none}
@media (max-width:767px){
 .ogd-stay-responsive-gallery .mdg-all{min-height:36px;padding:8px 10px;gap:6px;font-size:11px;border-radius:8px;background:#fffffff0}
 .ogd-stay-responsive-gallery .mdg-all::after{content:"";position:absolute;inset:-4px}
 .ogd-stay-responsive-gallery .mdg-all-full,.ogd-stay-responsive-gallery .mdg-all-arrow{display:none}
 .ogd-stay-responsive-gallery .mdg-all-short{display:inline}
 .ogd-stay-responsive-gallery .mdg-all-icon{display:block;flex:0 0 16px;width:16px;height:16px}
 .ogd-stay-responsive-gallery .mdg-nav button{position:relative;background:transparent;border:0;box-shadow:none;font-size:24px}
 .ogd-stay-responsive-gallery .mdg-nav button::before{content:"";position:absolute;inset:5px;border:1px solid #ffffffc7;border-radius:50%;background:#fffffff0;box-shadow:0 2px 10px #16332824}
 .ogd-stay-responsive-gallery .mdg-nav button span{position:relative;z-index:1}
}
/* Mini retains its sizing. Larger tablets fill the row, with a per-photo cap. */
@media (min-width:900px) and (max-width:1024px){
 .ogd-stay-responsive-gallery .mdg-thumbnails button{flex:1 0 88px;max-width:120px;width:auto;height:auto;aspect-ratio:88/62}
}

/* Replace the legacy one/two-photo split without changing shared templates. */
body.single-place.ogd-responsive-stay-gallery .ogd-custom-gallery-section{display:none!important}
body.single-place.ogd-responsive-stay-gallery .ogd-voxel-gallery-section{display:block!important}
body.single-place.ogd-responsive-stay-gallery.ogd-stay-gallery-empty .ogd-voxel-gallery-section{display:none!important}
.ogd-stay-responsive-gallery.mdg-count-1 .mdg-thumbnails,.ogd-stay-responsive-gallery.mdg-count-1 .mdg-nav,.ogd-stay-responsive-gallery.mdg-count-1 .mdg-counter{display:none!important}
@media (min-width:1025px){
 .ogd-stay-responsive-gallery.mdg-count-1 .mdg-photos{grid-template-columns:1fr;grid-template-rows:1fr;aspect-ratio:5/2}
 .ogd-stay-responsive-gallery.mdg-count-1 .mdg-photo:first-child{grid-column:1;grid-row:1}
 .ogd-stay-responsive-gallery.mdg-count-2 .mdg-photos{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr;aspect-ratio:3/1}
 .ogd-stay-responsive-gallery.mdg-count-2 .mdg-photo:first-child{grid-column:1;grid-row:1}
 .ogd-stay-responsive-gallery.mdg-count-2 .mdg-photo:nth-child(2){grid-column:2;grid-row:1}
 .ogd-stay-responsive-gallery.mdg-count-3 .mdg-photos{grid-template-columns:3fr 2fr;aspect-ratio:5/2}
 .ogd-stay-responsive-gallery.mdg-count-3 .mdg-photo:first-child{grid-column:1;grid-row:1/3}
 .ogd-stay-responsive-gallery.mdg-count-3 .mdg-photo:nth-child(2){grid-column:2;grid-row:1}
 .ogd-stay-responsive-gallery.mdg-count-3 .mdg-photo:nth-child(3){grid-column:2;grid-row:2}
 .ogd-stay-responsive-gallery.mdg-count-4 .mdg-photo:nth-child(4){grid-column:3/5;grid-row:2}
}
