.gallery-count, .gallery-hint { text-align: center; color: #6b7e87; font-size: .75rem; letter-spacing: .02em; }
.gallery-count { margin: -8px 0 24px; }
.gallery-hint { margin: 26px 0 0; }
.gallery-hint i { margin-right: 7px; }
.villa-home .gallery-tile { background: #eaf1f4; }
.villa-home .gallery-tile[hidden] { display: none; }
.villa-home .gallery-tile::after { height: 45%; opacity: .6; background: linear-gradient(transparent, #10222cbf); transition: opacity .25s; }
.villa-home .gallery-tile:hover::after { opacity: 1; }
.villa-home .gallery-tile .gallery-tile-caption { right: 58px; left: 22px; bottom: 20px; font-size: .8rem; font-weight: 500; line-height: 1.5; }
.villa-home .gallery-tile .gallery-expand { left: auto; right: 16px; bottom: 16px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #ffffff66; border-radius: 50%; background: #ffffff24; color: #fff; font-size: .8rem; backdrop-filter: blur(4px); }
.villa-photo-viewer .goverlay { background: rgba(10, 20, 27, .96); backdrop-filter: blur(10px); }
.villa-photo-viewer .gslider { top: 76px; height: calc(100% - 238px); }
.villa-photo-viewer .gslide-inner-content { box-shadow: 0 20px 70px #00000055; border-radius: 14px; }
.villa-photo-viewer .gslide-image img { max-height: calc(100dvh - 238px) !important; max-width: calc(100vw - 170px) !important; border-radius: 14px; }
.villa-photo-viewer .gslide-image.zoomed img { max-height: none !important; max-width: none !important; }
.villa-photo-viewer .gbtn { opacity: 1; background: #ffffff12; border: 1px solid #ffffff38; border-radius: 50%; width: 46px; height: 46px; transition: background .2s; }
.villa-photo-viewer .gbtn:hover { background: #ffffff2b; }
.villa-photo-viewer .gbtn:focus-visible, .villa-photo-thumb:focus-visible { outline: 2px solid #b8e2f4; outline-offset: 4px; }
.villa-photo-viewer .gbtn svg { width: 20px; height: 20px; }
.villa-photo-viewer .gclose { position: absolute; top: max(20px, env(safe-area-inset-top)); right: 24px; border-radius: 30px; width: 105px; height: 42px; display: flex; gap: 9px; align-items: center; justify-content: center; color: #fff; }
.villa-photo-viewer .gclose::after { content: 'Close'; font-size: .8rem; }
.villa-photo-viewer .gclose svg { position: static; display: block; margin: 0; flex: 0 0 16px; width: 16px; height: 16px; }
.villa-photo-viewer .gclose { flex-direction: row; }
.villa-photo-viewer .gprev { left: 22px; top: calc(50% - 55px); }
.villa-photo-viewer .gnext { right: 22px; top: calc(50% - 55px); }
.villa-viewer-brand { position: absolute; top: 35px; left: 28px; z-index: 10000; color: #d3e5ed; letter-spacing: .22em; font: 500 .67rem Arial, Helvetica, sans-serif; pointer-events: none; }
.villa-viewer-footer { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(700px, calc(100% - 48px)); color: #eef6f9; z-index: 10000; font-family: Arial, Helvetica, sans-serif; }
.villa-photo-info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; padding-inline: 4px; }
.villa-photo-caption { font-size: .86rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.villa-photo-counter { color: #acc6d1; font-size: .73rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.villa-photo-thumbs { display: flex; justify-content: safe center; gap: 10px; padding: 5px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #536c77 transparent; }
.villa-photo-thumb { flex: 0 0 68px; width: 68px; height: 48px; border: 2px solid transparent; border-radius: 8px; padding: 0; background: #1e3039; opacity: .55; cursor: pointer; overflow: hidden; }
.villa-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.villa-photo-thumb:hover { opacity: .85; }
.villa-photo-thumb[aria-current="true"] { border-color: #d0eaf5; opacity: 1; }
.villa-viewer-hint { margin: 10px 0 0; text-align: center; color: #9db9c6; font-size: .65rem; }
@media (max-width: 575px) {
    .villa-viewer-brand { top: 31px; left: 16px; font-size: .55rem; letter-spacing: .1em; }
    .villa-photo-viewer .gclose { top: max(16px, env(safe-area-inset-top)); right: 16px; width: 91px; }
    .villa-photo-viewer .gslider { top: 80px; height: calc(100% - 265px); }
    .villa-photo-viewer .gslide-image img { max-width: calc(100vw - 28px) !important; max-height: calc(100dvh - 265px) !important; border-radius: 10px; }
    .villa-photo-viewer .gprev, .villa-photo-viewer .gnext { top: auto; bottom: 176px; width: 38px; height: 38px; }
    .villa-photo-viewer .gprev { left: 16px; }
    .villa-photo-viewer .gnext { right: 16px; }
    .villa-viewer-footer { width: calc(100% - 28px); }
    .villa-photo-caption { font-size: .76rem; }
    .villa-photo-thumb { flex-basis: 56px; width: 56px; height: 42px; }
    .villa-home .gallery-tile .gallery-tile-caption { font-size: .75rem; left: 16px; }
}
@media (max-height: 500px) {
    .villa-photo-viewer .gslider { top: 60px; height: calc(100% - 160px); }
    .villa-photo-viewer .gslide-image img { max-height: calc(100dvh - 160px) !important; }
    .villa-photo-thumb { height: 32px; flex-basis: 48px; }
    .villa-viewer-hint { display: none; }
    .villa-photo-info { margin-bottom: 5px; }
}
