/* Make Slick arrows visible on white backgrounds */
.mv-slideshow {
    position: relative;
    overflow: visible;   /* let arrows render outside */
    z-index: 2;
    border-radius: 5px;
}

/* Arrows */
.mv-slideshow .slick-prev,
.mv-slideshow .slick-next {
    z-index: 5;
    background: none;
    border: none;
    top: 50%;
    transform: translateY(-50%);
}
.mv-slideshow .slick-prev { left: 20px; }
.mv-slideshow .slick-next { right: 20px; }

.mv-slideshow .slick-prev:before,
.mv-slideshow .slick-next:before {
    color: #e692e2;          /* ensure visible on light bg */
    font-size: 28px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.mv-slideshow .slick-prev:hover:before,
.mv-slideshow .slick-next:hover:before {
    opacity: 1;
}

/* Main slide area */
.mv-slideshow .mv-slide { position: relative; }
.mv-slideshow .mv-slide img { display: block; width: 100%; height: auto; }

.mv-slideshow .mv-slide-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Keep base height */
.mv-slideshow,
.mv-slideshow .slick-track,
.mv-slideshow .slick-slide {
    height: 480px;
}

/* Center image and add internal padding */
.mv-slideshow .slick-slide {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: #f2e9f2;   /* bg behind image */
    padding: 20px 0;
    box-sizing: border-box;
}

.mv-slideshow .slick-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* --- Thumbnail nav sizing --- */
.mv-slideshow-nav {
    margin-top: 10px;
    position: relative;
    height: 80px;            /* fixed lane height */
    overflow: hidden;
    @media (min-width: 782px) {
        height: auto;
    }
}

.mv-slideshow-nav .slick-track {
    display: flex;
    align-items: center;     /* vertically center thumbs */
}

.mv-slideshow-nav .slick-slide {
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-sizing: border-box;
}

.mv-slideshow-nav .mv-thumb,
.mv-slideshow-nav .mv-thumb img {
    display: block;
}

/* Use height-based sizing for consistent lane */
.mv-slideshow-nav .mv-thumb img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Thumb chrome */
.mv-slideshow-nav .mv-thumb {
    padding: 8px;
    cursor: pointer;
    border: 2px solid #f6f2f2;
    margin-right: 10px;
    border-radius: 0;
}

.mv-slideshow-nav .mv-thumb img {
    opacity: 0.6;
    transition: opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mv-slideshow-nav .slick-current img,
.mv-slideshow-nav .mv-thumb img:hover {
    opacity: 1;
    border: 2px solid #e692e2;    /* highlight selected */
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

/* Admin highlight for bulk-added rows */
.mv-bulk-added-highlight {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .mv-slideshow .slick-dots {
        display: none !important;
    }
}