.project-gallery-wrapper {
    width: 100%;
}

.project-gallery-slider {
    position: relative;
    width: 100%;
    height: 720px;
    overflow: hidden;
    border-radius: 32px;
    background-color: #111111;
}

.project-gallery-main {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.project-gallery-main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: opacity 900ms ease;
    will-change: opacity;
}

.project-gallery-main-image.is-active {
    opacity: 1;
}

.project-gallery-slider .splide__track {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.project-gallery-slider .splide__list {
    width: 100%;
    height: 100%;
    margin: 0;
}

.project-gallery-slider .splide__slide {
    width: 100%;
    height: 100%;
}

.project-gallery-nav {
    position: absolute;
    right: 55px;
    bottom: 60px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-gallery-more,
.project-gallery-preview {
    width: 90px;
    height: 80px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.project-gallery-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.project-gallery-more-count {
    color: #ffffff;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.project-gallery-preview {
    position: relative;
    display: block;
    padding: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.project-gallery-preview-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
}

.project-gallery-preview:hover {
    border-color: #ffffff;
}

.project-gallery-preview:hover .project-gallery-preview-image {
    transform: scale(1.08);
}

.project-gallery-preview:focus {
    outline: none;
}

.project-gallery-preview:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .project-gallery-slider {
        height: 600px;
        border-radius: 24px;
    }

    .project-gallery-nav {
        right: 30px;
        bottom: 40px;
        gap: 10px;
    }

    .project-gallery-more,
    .project-gallery-preview {
        width: 80px;
        height: 70px;
    }

    .project-gallery-more-count {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .project-gallery-slider {
        height: 480px;
        border-radius: 20px;
    }

    .project-gallery-nav {
        right: 20px;
        bottom: 20px;
        left: 20px;
        flex-direction: row;
        justify-content: flex-end;
        gap: 8px;
    }

    .project-gallery-more,
    .project-gallery-preview {
        width: 70px;
        height: 60px;
    }

    .project-gallery-more-count {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .project-gallery-slider {
        height: 420px;
        border-radius: 16px;
    }

    .project-gallery-nav {
        right: 15px;
        bottom: 15px;
        left: 15px;
    }

    .project-gallery-more,
    .project-gallery-preview {
        width: 62px;
        height: 54px;
    }

    .project-gallery-more-count {
        font-size: 13px;
    }
}