/*
 * KATY BEAUTY STUDIO
 * Gallery Engine 1.0
 */

.katy-gallery-hidden {
    display: none !important;
}

.katy-gallery-active {
    background: #c9a86a !important;
    border-color: #c9a86a !important;
    color: #121212 !important;
    font-weight: 600 !important;
}

.katy-gallery-inactive {
    background: transparent !important;
    border-color: rgba(201,168,106,.22) !important;
    color: rgba(247,241,232,.7) !important;
}

#galerie [role="button"]:focus-visible,
#galerie button:focus-visible {
    outline: 2px solid #c9a86a;
    outline-offset: 4px;
}

#galerie button:disabled {
    opacity: .35;
    cursor: default;
}

.katy-gallery-lightbox {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(94vw, 1100px);
    max-width: 94vw;
    max-height: 94dvh;
    padding: 48px 65px 24px;
    border: 1px solid rgba(201,168,106,.55);
    border-radius: 24px;
    background: #0e0e12;
    color: #f7f1e8;
    box-sizing: border-box;
    overflow: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,.7);
}

.katy-gallery-lightbox:not([open]) {
    display: none;
}

.katy-gallery-lightbox[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.katy-gallery-lightbox::backdrop {
    background: rgba(0,0,0,.88);
}

.katy-lightbox-photo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 70dvh;
    object-fit: contain;
    border-radius: 12px;
}

.katy-lightbox-caption {
    margin-top: 20px;
    text-align: center;
    font-size: 15px;
    letter-spacing: .12em;
    color: #c9a86a;
}

.katy-gallery-lightbox button {
    position: absolute;
    width: 42px;
    height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    background: #151519;
    color: #c9a86a;
    border: 1px solid rgba(201,168,106,.45);
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
}

.katy-gallery-lightbox button:hover {
    background: #c9a86a;
    color: #121212;
}

.katy-gallery-lightbox button:disabled {
    opacity: .3;
    cursor: default;
}

.katy-lightbox-close {
    top: 8px;
    right: 12px;
}

.katy-lightbox-prev {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.katy-lightbox-next {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

@media (max-width: 640px) {

    .katy-gallery-lightbox {
        padding: 55px 12px 70px;
        border-radius: 16px;
    }

    .katy-lightbox-photo {
        max-height: 65dvh;
    }

    .katy-lightbox-prev,
    .katy-lightbox-next {
        top: auto;
        bottom: 12px;
        transform: none;
    }

    .katy-lightbox-prev {
        left: 20px;
    }

    .katy-lightbox-next {
        right: 20px;
    }
}