.my-gallery-wrapper {
    width: 100%;
    max-width: 700px;
    background: #4c6470b2;
    padding: 20px 30px 10px;
}

/* ============================= */
/* THUMBNAIL SLIDER */
/* ============================= */
.thumb-slider {
    width: 100%;
    margin: 10px auto;
}

.thumb-slider .swiper-wrapper {
    display: flex;
    align-items: center;
}

.thumb-slider .swiper-slide {
    width: 100px;
    /* fixed thumbnail width */
    height: 80px;
    /* fixed thumbnail height */
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumb-slider .swiper-slide-thumb-active {
    opacity: 1;
}

.thumb-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================= */
/* MAIN SLIDER */
/* ============================= */
.main-slider {
    width: 100%;
    height: 300px;
    /* fixed height */
    min-height: 300px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.main-slider .swiper-wrapper {
    display: flex;
}

.main-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    flex-shrink: 0;
}

.main-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================= */
/* GENERAL SWIPER FIXES */
/* ============================= */
.swiper {
    visibility: visible;
}

.swiper-slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Ensure navigation buttons are visible */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    z-index: 10;
}

/* ============================= */
/* LIGHTBOX */
/* ============================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: block;
}

.close {
    color: #FF9900;
    font-size: 40px;
    position: absolute;
    right: 40px;
    cursor: pointer;
    top: calc(40px + 5vh);
}

/* Lightbox navigation buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.lightbox-nav button {
    pointer-events: all;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #FF9900;
    font-size: 30px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.lightbox-nav button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Optional: prevent huge slides before images load */
.swiper-slide img {
    min-width: 1px;
    min-height: 1px;
}

/* ==================================================
   RESPONSIVE DESIGN
================================================== */

@media (max-width: 1024px) {
    .thumb-slider .swiper-slide {
        width: 70px;
        height: 50px;
    }

    .my-gallery-wrapper {
        padding: 11px 10px 0px;
    }
}

/* @media (max-width: 768px) {} */

@media (max-width: 480px) {
    .thumb-slider .swiper-slide {
        width: 60px;
        height: 40px;
    }
}