.gallery-carousel-wrap {
    margin-top: 30px;
    margin-bottom: 20px;
}

.gallery-carousel-label {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #38424D;
    margin-bottom: 18px;
}

.gallery-carousel {
    max-width: 420px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(56, 66, 77, 0.12);
    background: #fff;
}

.gallery-carousel .carousel-inner {
    border-radius: 12px;
}

.gallery-carousel .carousel-item {
    position: relative;
    background: #f3f4f6;
}

.gallery-view-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    position: relative;
    cursor: zoom-in;
    text-align: left;
}

.gallery-view-trigger:focus {
    outline: none;
}

.gallery-view-trigger:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(210, 175, 255, 0.8);
}

.gallery-carousel-img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.gallery-view-trigger:hover .gallery-carousel-img {
    transform: scale(1.03);
}

.gallery-view-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(56, 66, 77, 0.75);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.gallery-view-trigger:hover .gallery-view-hint {
    opacity: 1;
    transform: translateY(0);
}

.gallery-carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 15px;
    background: linear-gradient(transparent, rgba(56, 66, 77, 0.75));
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    pointer-events: none;
}

.gallery-modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-modal-content .modal-header {
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
}

.gallery-modal-content .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #38424D;
}

.gallery-modal-img {
    display: block;
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    background: #f3f4f6;
}

.gallery-carousel .carousel-indicators {
    bottom: 8px;
    margin-bottom: 0;
    z-index: 2;
}

.gallery-carousel .carousel-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    margin: 0 4px;
}

.gallery-carousel .carousel-indicators li.active {
    background-color: #D2AFFF;
}

.gallery-carousel .carousel-control-prev,
.gallery-carousel .carousel-control-next {
    width: 36px;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(56, 66, 77, 0.45);
    border-radius: 50%;
    opacity: 1;
}

.gallery-carousel .carousel-control-prev {
    left: 12px;
}

.gallery-carousel .carousel-control-next {
    right: 12px;
}

.gallery-carousel .carousel-control-prev:hover,
.gallery-carousel .carousel-control-next:hover {
    background-color: rgba(210, 175, 255, 0.9);
}

.gallery-carousel .carousel-control-prev-icon,
.gallery-carousel .carousel-control-next-icon {
    width: 14px;
    height: 14px;
}

@media (max-width: 767px) {
    .gallery-carousel {
        max-width: 100%;
    }

    .gallery-carousel-img {
        height: 220px;
    }
}
