/* Accommodation gallery. Keep the established theme's typography and colours. */
.vn-apartment-gallery,
.vn-gallery-frame,
.vn-gallery-main,
.vn-gallery-thumbs { width: 100%; min-width: 0; box-sizing: border-box; }
.vn-apartment-gallery { position: relative; background: #fff; }
.vn-gallery-frame { margin: 0; }
.vn-gallery-main { aspect-ratio: var(--vn-ratio, 1.6666667); margin: 0; background: #fff; }
.vn-gallery-main .swiper-wrapper,
.vn-gallery-main .swiper-slide { height: 100%; }
.vn-gallery-main .swiper-slide { overflow: hidden; }
.vn-gallery-main .swiper-slide > img { display: block; width: 100%; height: 100%; margin: 0; max-width: none; object-fit: contain; cursor: pointer; user-select: none; -webkit-user-drag: none; }
.vn-gallery-thumbs { height: 100px; margin: 4px 0 0; overflow: hidden; }
.vn-gallery-thumbs .swiper-slide { width: 200px; height: 100px; }
.vn-gallery-thumbs button { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; cursor: pointer; }
.vn-gallery-thumbs img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.vn-gallery-thumbs .swiper-slide-thumb-active button { box-shadow: inset 0 0 0 3px #c7a684; }
.vn-gallery-thumbs .swiper-slide-thumb-active img { opacity: .75; }
.vn-gallery-arrow,
.vn-gallery-fullscreen { position: absolute; z-index: 5; margin: 0; cursor: pointer; }
.vn-gallery-arrow { top: 50%; transform: translateY(-50%); }
.vn-gallery-prev { left: 15px; }
.vn-gallery-next { right: 15px; }
.vn-gallery-fullscreen { right: 32px; top: 50px; }
.vn-gallery-arrow.swiper-button-disabled { opacity: .35; cursor: default; }
.vn-gallery-arrow.swiper-button-lock { display: none; }
@media (hover: hover) {
    .vn-gallery-main .vn-gallery-arrow { opacity: 0; transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease; }
    .vn-gallery-main:hover .vn-gallery-arrow,
    .vn-gallery-main:focus-within .vn-gallery-arrow { opacity: 1; }
    .vn-gallery-main:hover .vn-gallery-arrow.swiper-button-disabled { opacity: .35; }
}
.vn-home-gallery { position: relative; }
.vn-home-gallery.gallery-carousel { margin: 0; --vn-photo-height: clamp(220px, 46vh, 540px); }
.vn-home-gallery .g-item.swiper-slide { display: block; flex-shrink: 0; box-sizing: border-box; height: auto; }
.vn-home-gallery .g-item img { display: block; width: 100%; }
.vn-home-gallery.gallery-carousel .g-item.swiper-slide { width: auto; height: var(--vn-photo-height); padding: 0; float: none; }
.vn-home-gallery.gallery-carousel .g-item .inner,
.vn-home-gallery.gallery-carousel .g-item .inner-content { display: block; width: auto; height: 100%; }
.vn-home-gallery.gallery-carousel .g-item img { width: auto; height: 100%; max-width: none; object-fit: contain; }
.vn-home-gallery.gallery-carousel .g-item:hover img { transform: none; }
.vn-home-gallery.gallery-slider .g-item { padding: 0; }
.mojdizajn-gallery-section.odd { background-color: #fff; }
.mojdizajn-gallery-section.section-padding:last-child { padding-bottom: 7rem; }
.mojdizajn-gallery-section .gallery-carousel {
    --vn-preview-width: max(0px, calc((100% - 5 * var(--vn-gap)) / 6));
    --vn-edge-start: left;
    --vn-edge-end: right;
    --vn-preview-tint: rgba(255, 255, 255, .78);
}
.mojdizajn-gallery-section.even .gallery-carousel {
    --vn-edge-start: right;
    --vn-edge-end: left;
    --vn-preview-tint: rgba(248, 249, 249, .78);
}
.mojdizajn-gallery-section .gallery-carousel::before,
.mojdizajn-gallery-section .gallery-carousel::after {
    content: "";
    position: absolute;
    inset-block: 0;
    pointer-events: none;
    z-index: 2;
}
.mojdizajn-gallery-section .gallery-carousel::before {
    inset-inline-start: 0;
    width: clamp(3rem, 7vw, 9rem);
    background: linear-gradient(to var(--vn-edge-start), transparent, rgba(91, 102, 73, .72));
}
.mojdizajn-gallery-section .gallery-carousel::after {
    inset-inline-end: 0;
    width: var(--vn-preview-width);
    background: linear-gradient(to var(--vn-edge-end), transparent, var(--vn-preview-tint));
}
.mojdizajn-gallery-section .gallery-carousel:has(.vn-gallery-next:disabled)::before {
    inset-inline: auto 0;
    background: linear-gradient(to var(--vn-edge-end), transparent, rgba(91, 102, 73, .72));
}
.mojdizajn-gallery-section .gallery-carousel:has(.vn-gallery-next:disabled)::after {
    inset-inline: 0 auto;
    background: linear-gradient(to var(--vn-edge-start), transparent, var(--vn-preview-tint));
}
.mojdizajn-gallery-section .gallery-carousel:has(.vn-gallery-next.swiper-button-lock)::after { content: none; }
@media (min-width: 768px) {
    .mojdizajn-gallery-section .gallery-carousel {
        --vn-preview-width: max(0px, calc((100% - 8 * var(--vn-gap)) / 9));
    }
}
@media (min-width: 1200px) {
    .mojdizajn-gallery-section .gallery-carousel {
        --vn-preview-width: max(0px, calc((100% - 12 * var(--vn-gap)) / 13));
    }
}
.mojdizajn-gallery-section .gallery-carousel .g-item img { width: 100%; object-fit: cover; }
.mojdizajn-gallery-section.even .vn-gallery-prev { left: auto; right: 15px; }
.mojdizajn-gallery-section.even .vn-gallery-next { left: 15px; right: auto; }
.mojdizajn-gallery-section.even .vn-gallery-arrow i { transform: scaleX(-1); }
@media (max-width: 600px) {
    .vn-home-gallery.gallery-carousel { --vn-photo-height: clamp(180px, 40svh, 320px); }
    .vn-gallery-fullscreen { right: 12px; top: 12px; }
    .vn-gallery-thumbs,
    .vn-gallery-thumbs .swiper-slide { height: 72px; }
    .vn-gallery-thumbs .swiper-slide { width: 144px; }
}
@media (prefers-reduced-motion: reduce) {
    .vn-apartment-gallery .swiper-wrapper,
    .vn-home-gallery .swiper-wrapper { transition-duration: 0ms !important; }
}
