/* ===================================================================
   Product Gallery – stylesheet (v4)
   -------------------------------------------------------------------
   – White background, no side‑bars
   – 50 % larger artwork area on desktop & mobile
   – Arrow controls with border + hover invert (no sticky focus)
   – Mobile‑friendly sizing (arrows stay visible & smaller)
   ===================================================================*/

/* 1. Overall gallery wrapper ------------------------------------------------*/
.product-gallery {
    margin: 0 auto 30px auto;
    text-align: center;
}

/* 2. Carousel container -----------------------------------------------------*/
#artworkCarousel {
    width: 90%; /* centre & leave breathing room */
    max-width: 660px; /* desktop width */
    margin: 0 auto;
    background: #fff; /* ensure no grey bands */
    border: none;
    box-shadow: none;
}

/* Image inside each slide */
#artworkCarousel .item img {
    max-width: 100%;
    max-height: 72vh; /* 50 % bump (48 → 72 vh) */
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .10);
}

/* 3. Controls (arrows) ------------------------------------------------------*/
#artworkCarousel .carousel-control {
    background: none !important; /* kill Bootstrap grey */
    border: none;
    width: 42px;
    height: 42px;
    top: 44%;
    opacity: 1; /* always visible */
    transition: opacity .25s;
    outline: none; /* remove focus outline */
}

#artworkCarousel .carousel-control .glyphicon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 22px;
    color: #666;
    background: #fff;
    border: 2px solid #666; /* outline so arrow never disappears */
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, .15);
    transition: all .25s ease;
}

/* Hover – invert colours */
#artworkCarousel .carousel-control:hover .glyphicon {
    background: #666;
    color: #fff;
    border-color: #666;
    box-shadow: 0 0 6px rgba(0, 0, 0, .30);
}

/* Active / click – quick inner press effect  */
#artworkCarousel .carousel-control:active .glyphicon {
    background: #444;
    color: #fff;
    border-color: #444;
    transform: scale(0.92);
}

/* Focus (keyboard navigation) – ONLY when *not* hovered  */
#artworkCarousel .carousel-control:focus:not(:hover) .glyphicon {
    background: #fff;
    color: #666;
    border-color: #666;
    box-shadow: 0 0 4px rgba(0, 0, 0, .15);
}

/* 4. Thumbnail indicators ----------------------------------------------------*/
.thumbnail-indicators {
    margin-top: 12px;
    padding-left: 0;
}

.thumbnail-indicators li {
    display: inline-block;
    margin: 4px;
    border: none;
    background: none;
    cursor: pointer;
}

.thumbnail-indicators li img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: transform .3s, border-color .3s;
}

.thumbnail-indicators li img:hover,
.thumbnail-indicators li.active img {
    transform: scale(1.05);
    border-color: #999;
}

/* 5. Responsive scaling ------------------------------------------------------*/
@media (max-width: 991.98px) {
    /* tablets */
    #artworkCarousel {
        max-width: 540px;
    }

    #artworkCarousel .item img {
        max-height: 60vh;
    }
}

@media (max-width: 575.98px) {
    /* phones */
    #artworkCarousel {
        max-width: 480px;
    }

    #artworkCarousel .item img {
        max-height: 51vh;
    }

    /* keep arrows visible but smaller */
    #artworkCarousel .carousel-control {
        width: 34px;
        height: 34px;
    }

    #artworkCarousel .carousel-control .glyphicon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}


/* ─── Light-box baseline (fit to viewport) ─── */
#imageModal .modal-dialog {
    width: auto;
    max-width: 95vw;
}

#modalImage {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain; /* no stretch, always letter-box */
    border-radius: 6px;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

/* zoomed-in state */
#modalImage.zoomed {
    max-width: none;
    max-height: none;
    cursor: grab;
}

/* while zoomed we disable browser pinch/double-tap default */
#modalImage.zoomed {
    touch-action: none;
}

/*# Promo badges overlay needs a positioned parent on PDP*/
.cc-pdp-gallery-wrap {
    position: relative;
}