/* MZ_LOCATION_GALLERIES_START */

.mz-feliks-gallery-grid,
.mz-konak-gallery-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.mz-location-gallery-item {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 300px;
    padding: 0 !important;
    overflow: hidden;
    border:
        1px solid rgba(190, 151, 76, 0.38)
        !important;
    outline: 0 !important;
    background: #17130f !important;
    cursor: zoom-in;
    appearance: none;
    text-align: left;
    transition:
        border-color 240ms ease,
        box-shadow 240ms ease,
        transform 240ms ease;
}

.mz-location-gallery-item:hover,
.mz-location-gallery-item:focus-visible {
    border-color: #c9a45c !important;
    box-shadow:
        0 0 0 1px rgba(201, 164, 92, 0.88),
        0 16px 42px rgba(35, 25, 14, 0.24)
        !important;
    transform: translateY(-3px);
}

.mz-location-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition:
        transform 520ms cubic-bezier(.2, .7, .2, 1),
        filter 260ms ease;
}

.mz-location-gallery-item:hover img {
    transform: scale(1.025);
    filter:
        brightness(1.035)
        saturate(1.03);
}

.mz-location-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(14, 11, 8, 0.01) 45%,
            rgba(14, 11, 8, 0.70) 100%
        );
}

.mz-location-gallery-number {
    position: absolute;
    top: 17px;
    left: 17px;
    z-index: 3;
    min-width: 39px;
    padding: 7px 9px;
    border:
        1px solid rgba(224, 190, 116, 0.62);
    background:
        rgba(19, 15, 10, 0.74);
    color: #e3c179 !important;
    -webkit-text-fill-color: #e3c179 !important;
    font-family: Inter, sans-serif;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-align: center;
    backdrop-filter: blur(7px);
}

.mz-location-gallery-title {
    position: absolute;
    left: 20px;
    right: 64px;
    bottom: 19px;
    z-index: 3;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;
    font-size: clamp(21px, 2vw, 28px);
    font-style: normal;
    font-weight: 600;
    line-height: 1.06;
    text-shadow:
        0 2px 15px rgba(0, 0, 0, 0.46);
}

.mz-location-gallery-zoom {
    position: absolute;
    right: 17px;
    bottom: 17px;
    z-index: 3;
    display: grid;
    width: 39px;
    height: 39px;
    padding: 0;
    place-items: center;
    border:
        1px solid rgba(225, 191, 117, 0.74);
    border-radius: 50%;
    background:
        rgba(20, 16, 11, 0.74);
    color: #e4c37c !important;
    -webkit-text-fill-color: #e4c37c !important;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    transition:
        background 220ms ease,
        color 220ms ease,
        transform 220ms ease;
}

.mz-location-gallery-item:hover
.mz-location-gallery-zoom {
    background: #c49c50;
    color: #171109 !important;
    -webkit-text-fill-color: #171109 !important;
    transform: rotate(90deg);
}

/* Fullscreen lightbox */

.mz-location-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(9, 7, 5, 0.96);
    backdrop-filter: blur(10px);
}

.mz-location-lightbox.is-open {
    display: flex;
}

.mz-location-lightbox-stage {
    display: flex;
    max-width: 96vw;
    max-height: 94vh;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.mz-location-lightbox-image {
    display: block;
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-in;
    user-select: none;
    transform-origin: center center;
    transition: transform 220ms ease;
}

.mz-location-lightbox.is-zoomed
.mz-location-lightbox-image {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
    transform: scale(1.65);
}

.mz-location-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 4;
    display: grid;
    width: 47px;
    height: 47px;
    padding: 0 !important;
    place-items: center;
    border:
        1px solid rgba(220, 182, 102, 0.76)
        !important;
    border-radius: 50%;
    background:
        rgba(23, 18, 12, 0.86)
        !important;
    color: #e3c076 !important;
    -webkit-text-fill-color: #e3c076 !important;
    font-size: 29px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.mz-location-lightbox-close:hover {
    background: #bc9147 !important;
    color: #171109 !important;
    -webkit-text-fill-color: #171109 !important;
}

body.mz-location-lightbox-open {
    overflow: hidden !important;
}

@media (max-width: 1024px) {
    .mz-feliks-gallery-grid,
    .mz-konak-gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .mz-feliks-gallery-grid,
    .mz-konak-gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mz-location-gallery-item,
    .mz-location-gallery-item img {
        min-height: 250px;
    }

    .mz-location-lightbox {
        padding: 15px;
    }

    .mz-location-lightbox-image {
        max-width: 96vw;
        max-height: 86vh;
    }

    .mz-location-lightbox.is-zoomed
    .mz-location-lightbox-image {
        transform: scale(1.35);
    }
}

/* MZ_LOCATION_GALLERIES_END */
