﻿:root {
    --gallery-radius: 12px;
    --gallery-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-carousel__wrapper {
    border-radius: var(--gallery-radius);
    overflow: hidden;
    box-shadow: var(--gallery-shadow);
    position: relative;
}

.gallery-carousel {
    width: 100%;
}

.gallery-carousel .carousel-inner {
    width: 100%;
    height: 100%;
}

.gallery-carousel__image-container {
    width: 100%;
    height: 100%;
    /* ReSharper disable once CssNotResolved */
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
}

.gallery-carousel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.gallery-carousel .carousel-control-prev,
.gallery-carousel .carousel-control-next {
    width: 5%;
    transition: opacity 0.2s ease;
}

.gallery-carousel .carousel-control-prev-icon,
.gallery-carousel .carousel-control-next-icon {
    filter: invert(1);
}

.gallery-carousel .carousel-control-prev:hover,
.gallery-carousel .carousel-control-next:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .gallery-carousel__wrapper {
        border-radius: 0;
        box-shadow: none;
    }

    .gallery-carousel__image-container {
        /* ReSharper disable once CssNotResolved */
        aspect-ratio: 4 / 3;
    }
}