
.photo-carousel {
    max-width: 1100px;
    margin: 2rem auto;
}

.carousel-feature {
    position: relative;
    background: #171c21;
    border-radius: 16px;
    overflow: hidden;
}

.carousel-feature img {
    display: block;
    width: 100%;
    height: min(65vh, 650px);
    object-fit: contain;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.carousel-controls button {
    cursor: pointer;
    border: 1px solid #888;
    border-radius: 8px;
    padding: .7rem 1.2rem;
    background: transparent;
    color: inherit;
}

.carousel-thumbnails {
    display: flex;
    gap: .65rem;
    overflow-x: auto;
    padding: .5rem 0 1rem;
    scroll-snap-type: x proximity;
}

.carousel-thumbnails button {
    flex: 0 0 110px;
    width: 110px;
    height: 82px;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: transparent;
    scroll-snap-align: center;
}

.carousel-thumbnails button.active {
    border-color: #c78550;
}

.carousel-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .carousel-feature img {
        height: 45vh;
    }

    .carousel-thumbnails button {
        flex-basis: 85px;
        width: 85px;
        height: 65px;
    }
}

/* CONCHO CAROUSEL FINISHING TOUCHES */

.photo-carousel {
    max-width: 1160px;
}

.carousel-feature {
    position: relative;
}

.carousel-feature img {
    max-height: 70vh;
    object-fit: contain;
}

.carousel-thumbnails {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.carousel-thumbnails::-webkit-scrollbar {
    display: none;
}

.carousel-thumbnails button {
    flex: 0 0 125px;
    width: 125px;
    height: 90px;
    transition: transform .2s ease, border-color .2s ease;
}

.carousel-thumbnails button:hover {
    transform: translateY(-3px);
}

.carousel-overlay-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: rgba(15, 25, 25, .55);
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.carousel-overlay-arrow:hover {
    background: rgba(15, 25, 25, .85);
}

.carousel-overlay-prev {
    left: 12px;
}

.carousel-overlay-next {
    right: 12px;
}

@media (max-width: 600px) {
    .carousel-thumbnails button {
        flex-basis: 90px;
        width: 90px;
        height: 68px;
    }

    .carousel-overlay-arrow {
        width: 36px;
        height: 44px;
        font-size: 24px;
    }
}


/* CONCHO CAROUSEL CLEANUP */

/* Hide redundant category filter */
form.search-form,
.gallery-filter,
.gallery-filters {
    display: none !important;
}

/* Hide duplicate navigation buttons beneath the photograph */
.carousel-controls button {
    display: none !important;
}

/* Preserve centered photo counter */
.carousel-controls {
    justify-content: center !important;
}

/* Reduce unnecessary spacing */
.photo-carousel {
    margin-top: 0.75rem !important;
    margin-bottom: 1.5rem !important;
}

/* Keep thumbnail navigation compact */
.carousel-thumbnails {
    margin-top: 0.75rem;
}

/* Mobile improvements */
@media (max-width: 600px) {
    .carousel-feature img {
        height: min(55vh, 450px);
    }
}


/* CONCHO GALLERY HERO CLEANUP */

/* Hide the gallery's introductory hero section */
body:has(.photo-carousel) .page-hero {
    display: none !important;
}

/* Tighten the spacing above the carousel */
body:has(.photo-carousel) .photo-carousel {
    margin-top: 0 !important;
}

/* Keep comfortable spacing around the gallery */
body:has(.photo-carousel) main {
    padding-top: 1rem;
}

/* Mobile layout */
@media (max-width: 600px) {
    body:has(.photo-carousel) main {
        padding-top: 0.5rem;
    }
}
