/*-----------------------------------*\
  #GALLERY
\*-----------------------------------*/

.gallery-section {
    width: 100%;
    height: 100vh;
    background-color: var(--beige-01);
}

.gallery-main-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.035);
    transition:
        opacity 0.7s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.9s;
    will-change: opacity, transform;
}

.gallery-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.12) 100%);
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.gallery-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition:
        opacity 0.7s ease,
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
    z-index: 1;
}

.gallery-slide.is-active::after {
    opacity: 1;
}

.gallery-main-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-arrow:hover {
    opacity: 0.8;
}

.gallery-arrow:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.9);
    outline-offset: 8px;
}

.gallery-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.gallery-arrow img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.gallery-arrow-left {
    left: 40px;
}

.gallery-arrow-right {
    right: 40px;
}

@media (max-width: 920px) {
    .gallery-arrow {
        width: 52px;
        height: 52px;
    }

    .gallery-arrow-left {
        left: 24px;
    }

    .gallery-arrow-right {
        right: 24px;
    }
}

@media (max-width: 700px) {
    .gallery-section,
    .gallery-main-container {
        height: 720px;
    }

    .gallery-arrow {
        width: 44px;
        height: 44px;
    }

    .gallery-arrow-left {
        left: 16px;
    }

    .gallery-arrow-right {
        right: 16px;
    }
}
