/*==================================================*
GALLERY LIGHTBOX
Awaken Your Inner Compass
*==================================================*/


/*==================================================*
OVERLAY
*==================================================*/

.gallery-lightbox {
    position: fixed;
    inset: 0;

    display: none;

    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;

    z-index: 99999;
}

.gallery-lightbox.active {
    display: flex;

    animation: galleryFade .45s ease;
}


/*==================================================*
BACKDROP
*==================================================*/

.gallery-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(12, 12, 12, .94);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    z-index: 0;
}


/*==================================================*
VIEWER
*==================================================*/

.gallery-viewer {
    position: relative;

    width: min(1400px, 96vw);
    height: min(94vh, 980px);

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    z-index: 1;
}


/*==================================================*
ARTWORK STAGE
*==================================================*/

.gallery-stage {
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 80px 120px;

    position: relative;
    z-index: 2;
}


/*==================================================*
ARTWORK
*==================================================*/

.gallery-image-full {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 22px;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, .45);

    animation: artworkAppear .45s ease;
}


/*==================================================*
CLOSE BUTTON
*==================================================*/

.gallery-close {
    position: absolute;

    top: 30px;
    right: 30px;

    padding: 12px 16px;

    border: none;
    border-radius: 999px;

    background: rgba(255, 255, 255, .08);

    backdrop-filter: blur(18px);

    color: #F5F3EE;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: .35s;

    z-index: 150;
}

.gallery-close:hover {
    background: #C8A15A;

    transform: rotate(90deg);
}


/*==================================================*
NAVIGATION
*==================================================*/

.gallery-nav {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: none;

    color: rgba(255, 255, 255, .55);

    font-family: Inter, sans-serif;

    font-size: .95rem;

    letter-spacing: .08em;

    display: flex;
    align-items: center;

    gap: 12px;

    cursor: pointer;

    transition: all .35s ease;

    opacity: 0;

    z-index: 100;
}

.gallery-viewer:hover .gallery-nav {
    opacity: 1;
}

.gallery-prev {
    left: 28px;
}

.gallery-next {
    right: 28px;
}

.gallery-nav i {
    font-size: 1.3rem;

    transition: .3s;
}

.gallery-prev:hover {
    color: #C8A15A;

    transform:
        translateY(-50%)
        translateX(-8px);
}

.gallery-next:hover {
    color: #C8A15A;

    transform:
        translateY(-50%)
        translateX(8px);
}

.gallery-nav:hover i {
    transform: scale(1.15);
}


/*==================================================*
TOP USER INTERFACE
*==================================================*/

.gallery-ui {
    position: absolute;

    inset: 0;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    pointer-events: none;

    transition:
        opacity .45s ease,
        transform .45s ease;

    z-index: 120;
}

.gallery-top {
    display: flex;

    justify-content: center;

    padding-top: 34px;
}

.gallery-meta {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 12px 22px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .08);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .25);
}

.gallery-category {
    font-family: Inter, sans-serif;

    font-size: .75rem;

    letter-spacing: .35em;

    text-transform: uppercase;

    color: #C8A15A;
}

.gallery-counter {
    color: #F4F2ED;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.1rem;
}


/*==================================================*
BOTTOM USER INTERFACE
*==================================================*/

.gallery-bottom {
    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    padding-bottom: 36px;
}

.gallery-reflection {
    max-width: 620px;

    margin-bottom: 26px;

    padding: 0 20px;

    text-align: center;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.25rem;

    font-style: italic;

    color: rgba(255, 255, 255, .78);

    line-height: 1.7;
}


/*==================================================*
TOOLBAR
*==================================================*/

.gallery-toolbar {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 18px;

    flex-wrap: wrap;

    pointer-events: auto;
}

.gallery-toolbar button {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 14px 26px;

    border: none;

    border-radius: 999px;

    background: rgba(255, 255, 255, .08);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    color: #F6F3ED;

    font-family: Inter, sans-serif;

    font-size: .92rem;

    font-weight: 500;

    cursor: pointer;

    transition: all .35s ease;
}

.gallery-toolbar button:hover {
    background: #C8A15A;

    color: white;

    transform: translateY(-3px);
}

.gallery-toolbar button i {
    font-size: 15px;
}


/*==================================================*
TOAST
*==================================================*/

.gallery-toast {
    position: fixed;

    left: 50%;
    bottom: 34px;

    transform:
        translateX(-50%)
        translateY(40px);

    padding: 14px 26px;

    border-radius: 999px;

    background: rgba(18, 18, 18, .88);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    color: #F8F5EF;

    font-family: Inter, sans-serif;

    font-size: .92rem;

    font-weight: 500;

    letter-spacing: .02em;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .35s ease,
        transform .35s ease;

    z-index: 999999;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .30);
}

.gallery-toast.show {
    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0);
}


/*==================================================*
ANIMATIONS
*==================================================*/

@keyframes galleryFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes artworkAppear {

    from {
        opacity: 0;
        transform: scale(.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}

.gallery-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0.6rem;
}

.gallery-action img {
    width: 17px;
    height: 17px;

    display: block;

    object-fit: contain;

    flex-shrink: 0;

	 filter:
        brightness(0)
        invert(1);
}

/*==================================================*
RESPONSIVE
*==================================================*/

@media (max-width: 900px) {

    .gallery-viewer {
        width: 100vw;
        height: 100vh;

        padding: 30px;
    }

    .gallery-stage {
        padding:
            70px
            20px
            30px;
    }

    .gallery-image-full {
        max-width: 100%;
        max-height: 68vh;
    }

    .gallery-toolbar {
        flex-direction: column;

        width: 100%;

        gap: 14px;
    }

    .gallery-toolbar button {
        width: 100%;

        justify-content: center;
    }

    .gallery-reflection {
        font-size: 1.05rem;

        padding: 0 10px;
    }

    .gallery-nav {
        display: none;
    }

}