/* Lightbox thumbnail strip — edited for premium row border and no overlap. */

.mfp-with-gallery-thumbs .mfp-container {
    padding-top: 14vh !important; /* Move image down by 14% of screen height */
    padding-bottom: 180px !important;
    box-sizing: border-box;
}

.mfp-with-gallery-thumbs .mfp-content {
    vertical-align: middle !important;
}

.mfp-with-gallery-thumbs .mfp-counter {
    display: none !important;
}

.mfp-with-gallery-thumbs .mfp-image-holder .mfp-img,
.mfp-with-gallery-thumbs img.mfp-img {
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    border: 4px solid #fff !important;
    padding: 5px !important; /* Reduced from 40px */
    max-height: calc(100vh - 280px) !important;
}

.mfp-gallery-thumb-strip {
    position: fixed;
    left: 50% !important;
    right: auto !important;
    bottom: 30px !important;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px !important;
    background: rgba(0, 0, 0, 0.75) !important; /* Solid-ish background */
    border: 2px solid #fff !important; /* White border around the whole row */
    border-radius: 16px;
    width: fit-content;
    max-width: 95%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    pointer-events: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.mfp-gallery-thumb-strip::-webkit-scrollbar {
    display: none;
}

.mfp-gallery-thumb-btn {
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    opacity: 0.5;
    transition: all 0.2s ease;
    line-height: 0;
}

.mfp-gallery-thumb-btn:hover,
.mfp-gallery-thumb-btn:focus-visible {
    opacity: 0.8;
    outline: none;
}

.mfp-gallery-thumb-btn.is-active {
    opacity: 1;
    transform: scale(1.05);
}

.mfp-gallery-thumb-img-wrap {
    display: block;
    width: 55px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
}

.mfp-gallery-thumb-btn.is-active .mfp-gallery-thumb-img-wrap {
    box-shadow: 0 0 0 2px #fff;
}

.mfp-gallery-thumb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 576px) {
    .mfp-gallery-thumb-img-wrap {
        width: 65px;
        height: 65px;
    }

    .mfp-with-gallery-thumbs .mfp-container {
        padding-bottom: 240px !important;
    }
    
    .mfp-gallery-thumb-strip {
        padding: 15px !important;
        bottom: 40px !important;
    }

    .mfp-with-gallery-thumbs img.mfp-img {
        max-height: calc(100vh - 320px) !important;
    }
}

/* Style gallery arrows to look like Slick arrows */
.mfp-arrow {
    background-color: #12458b !important; /* Premium blue background */
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mfp-arrow:before, .mfp-arrow:after {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    position: static !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
}

.mfp-arrow:before {
    display: none !important;
}

/* Arrow Icons (Swapped for RTL/User preference) */
.mfp-arrow-left {
    left: 20px !important;
}
.mfp-arrow-left:after {
    content: '›' !important; /* Swapped */
    color: #fff !important;
    font-size: 45px !important;
    line-height: 1 !important;
    font-family: Arial, sans-serif !important;
}

.mfp-arrow-right {
    right: 20px !important;
}
.mfp-arrow-right:after {
    content: '‹' !important; /* Swapped */
    color: #fff !important;
    font-size: 45px !important;
    line-height: 1 !important;
    font-family: Arial, sans-serif !important;
}

.mfp-arrow:hover {
    background-color: #fff !important;
    transform: scale(1.1);
    opacity: 1 !important;
}

.mfp-arrow:active {
    transform: scale(0.95);
}

@media (max-width: 767px) {
    .mfp-arrow {
        width: 38px !important;
        height: 38px !important;
    }
}
