* {
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
}

.clickable-carousel {
    cursor: pointer;
}

.fullscreen-carousel-overlay {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    outline: none;
}

.exit-button, .next-button, .prev-button {
    position: absolute;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 15px;
    font-size: 24px;
    color: white;
    background-color: rgba(11, 64, 8, 1);
    border-radius: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
    outline: none;
}

.exit-button:active,
.prev-button:active,
.next-button:active {
    background-color: rgba(11, 64, 8, 1);
    transform: scale(0.90);
}

.fullscreen-carousel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-carousel {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 80%;
    max-width: 1600px;
    aspect-ratio: 789 / 443;
}

.fullscreen-carousel img {
    box-sizing: border-box;
    padding: 0;
    margin: auto;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease-in-out;
}

.exit-button {
    top: 1%;
    right: 1%;
}

.prev-button {
    top: 0;
    bottom: 0;
    margin: auto 0;
    cursor: pointer;
    left: 1rem;
    height: 48px;
    aspect-ratio: 48/48;
}

.next-button {
    top: 0;
    bottom: 0;
    margin: auto 0;
    cursor: pointer;
    right: 1rem;
    height: 48px;
    aspect-ratio: 48/48;
}

@media (max-width: 1128px) {
    .exit-button, .next-button, .prev-button {
        transform: scale(0.8);
        background-color: rgba(11, 64, 8, 0.5);
        color: rgba(255, 255, 255, 1);
    }
    .fullscreen-carousel {
        width: 100%;
        position: relative;
    }
    .next-button {
        right: 1%;
    }
    .prev-button {
        left: 1%;
    }
    .exit-button {
        position: relative;
        top: auto;
        right: auto;
    }
    .fullscreen-carousel-overlay {
        row-gap: 5px;
    }
}