/* Five-photo overview: one lead image and four smaller views. */
.villa-home .gallery-section .section-heading { text-align:left!important; max-width:720px; margin:0 0 24px; }
.villa-home #gallery-filters { justify-content:flex-start!important; flex-wrap:nowrap!important; overflow-x:auto; padding:4px 2px 10px; scrollbar-width:thin; }
.villa-home #gallery-filters button { flex:0 0 auto; min-height:44px; padding:10px 20px; border:1px solid #d2ded7; border-radius:99px; color:#355348; background:#fff; font-size:.85rem; font-weight:600; white-space:nowrap; }
.villa-home #gallery-filters button.active { background:#193e33; border-color:#193e33; color:#fff; }
.villa-home .gallery-count { text-align:left; margin:0 0 16px; color:#53675f; }
.villa-home .gallery-mosaic { display:grid; grid-template-columns:2.05fr 1fr 1fr; grid-template-rows:repeat(2,clamp(155px,17vw,225px)); grid-auto-rows:180px; gap:8px; }
.villa-home .gallery-mosaic .gallery-tile { min-width:0; min-height:0; border-radius:14px; grid-column:auto; grid-row:auto; }
.villa-home .gallery-mosaic .gallery-featured { grid-column:1; grid-row:1 / span 2; }
.villa-home .gallery-preview-ready .gallery-preview-hidden { display:none; }
.villa-home .gallery-mosaic .gallery-tile::after { height:100%; background:#0c201a; opacity:0; }
.villa-home .gallery-mosaic .gallery-more::after { opacity:.54; }
.villa-home .gallery-mosaic .gallery-more:hover::after { opacity:.65; }
.villa-home .gallery-tile .gallery-tile-caption,.villa-home .gallery-tile .gallery-expand { display:none; }
.villa-home .gallery-tile .gallery-view-all,.villa-home .gallery-tile .gallery-show-more { display:none; text-shadow:none; }
.villa-home .gallery-featured .gallery-view-all { display:inline-flex; align-items:center; gap:7px; left:auto; right:18px; bottom:18px; padding:11px 16px; border-radius:99px; background:#fff; color:#193e33; font-size:.77rem; font-weight:600; box-shadow:0 4px 20px #0002; }
.villa-home .gallery-view-all > span { position:static; color:inherit; font:inherit; text-shadow:none; }
.villa-home .gallery-more .gallery-show-more { display:flex; align-items:center; justify-content:center; gap:8px; inset:12px; color:#fff; font-size:.83rem; font-weight:600; text-align:center; }
.villa-home .gallery-tile:focus-visible { outline:3px solid #527f73; outline-offset:4px; }
.villa-home .gallery-mosaic[data-photo-count="4"] .gallery-more { grid-column:2 / span 2; }
.villa-home .gallery-mosaic[data-photo-count="3"] { grid-template-columns:2fr 1fr; }
.villa-home .gallery-mosaic[data-photo-count="2"] { grid-template-columns:1fr 1fr; grid-template-rows:clamp(210px,30vw,420px); }
.villa-home .gallery-mosaic[data-photo-count="2"] .gallery-featured { grid-row:auto; }
.villa-home .gallery-mosaic[data-photo-count="1"] { grid-template-columns:1fr; grid-template-rows:clamp(230px,45vw,480px); }
.villa-home .gallery-mosaic[data-photo-count="1"] .gallery-featured { grid-row:auto; }
.villa-home .gallery-hint { text-align:left; margin-top:18px; }
@media(max-width:600px) {
 .villa-home .gallery-mosaic { grid-template-columns:1fr 1fr; grid-template-rows:230px 120px 120px; gap:6px; }
 .villa-home .gallery-mosaic .gallery-featured { grid-column:1 / -1; grid-row:1; }
 .villa-home .gallery-mosaic .gallery-tile { border-radius:12px; }
 .villa-home .gallery-mosaic[data-photo-count="4"] { grid-template-rows:230px 120px 120px; }
 .villa-home .gallery-mosaic[data-photo-count="4"] .gallery-more { grid-column:1 / -1; }
 .villa-home .gallery-mosaic[data-photo-count="3"] { grid-template-columns:1fr 1fr; grid-template-rows:230px 130px; }
 .villa-home .gallery-mosaic[data-photo-count="2"] { grid-template-columns:1fr 1fr; grid-template-rows:210px; }
 .villa-home .gallery-mosaic[data-photo-count="2"] .gallery-featured { grid-column:auto; }
 .villa-home .gallery-featured .gallery-view-all { right:12px; bottom:12px; padding:10px 13px; font-size:.72rem; }
 .villa-home .gallery-more .gallery-show-more { font-size:.76rem; }
}
@media(prefers-reduced-motion:reduce) { .villa-home .gallery-tile img { transition:none; } }
.villa-home .gallery-mosaic:not(.gallery-preview-ready) .gallery-view-all,.villa-home .gallery-mosaic:not(.gallery-preview-ready) .gallery-show-more{display:none}
