.hero-gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.hero-gallery-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
}

.hero-gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    visibility: hidden;
    transform: translateX(0%);
}

.hero-gallery-slide.is-active {
    visibility: visible;
    cursor: pointer;
}

.hero-gallery-slides::after {
    content: '';
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d233a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 640px) {
    .hero-gallery-slides::after {
        width: 30px;
        height: 30px;
        background-size: 14px 14px;
        right: 8px;
        bottom: 8px;
    }
}

.hero-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #0d233a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: background 0.2s ease;
}

.hero-gallery-arrow:hover {
    background: #ffffff;
}

.hero-gallery-prev {
    left: 12px;
}

.hero-gallery-next {
    right: 12px;
}

.hero-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.hero-gallery-thumbs .hero-gallery-thumb {
    display: none;
    width: 100%;
    height: 95px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    border: 0;
    padding: 0;
    background: none;
}

.hero-gallery-thumbs .hero-gallery-thumb.is-visible {
    display: block;
}

.hero-gallery-thumbs .hero-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.hero-gallery-thumbs .hero-gallery-thumb.is-active img {
    opacity: 1;
}

@media (max-width: 800px) {
    .hero-gallery-arrow {
        width: 32px;
        height: 32px;
    }

    .hero-gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-gallery-thumbs .hero-gallery-thumb {
        height: auto;
        aspect-ratio: 136 / 95;
    }
}

@media (max-width: 640px) {
    .hero-gallery-thumbs {
        display: none;
    }
}
