/* ==========================================================================
   Sumeru Project Gallery Widget Styles
   ========================================================================== */

.sumeru-gallery-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

/* Main Display Image Area */
.sumeru-gallery-main-view {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sumeru-gallery-main-img {
    width: 100%;
    height: 100%;
    display: block;
    transition: opacity 0.4s ease-in-out;
}

/* Aspect Ratios */
.sumeru-gallery-main-view.ar-auto {
    height: auto;
}

.sumeru-gallery-main-view.ar-16-9 {
    aspect-ratio: 16 / 9;
}

.sumeru-gallery-main-view.ar-4-3 {
    aspect-ratio: 4 / 3;
}

.sumeru-gallery-main-view.ar-1-1 {
    aspect-ratio: 1 / 1;
}

/* Fit settings */
.sumeru-gallery-main-img.fit-cover {
    object-fit: cover;
}

.sumeru-gallery-main-img.fit-contain {
    object-fit: contain;
}

/* Navigation Arrows */
.sumeru-gallery-arrow {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
    user-select: none;
    border: 1px solid #ffffff;
}

.sumeru-gallery-zoom-btn:hover,
.sumeru-gallery-arrow:hover {
    background-color: rgba(75, 181, 155, 0.9) !important;
}

.sumeru-gallery-arrow svg,
.sumeru-lightbox-arrow svg {
    fill: currentColor !important;
    display: block;
}

/* Zoom Icon Overlay */
.sumeru-gallery-zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
    border: 1px solid #ffffff;
    border-radius: 3px;
}

.sumeru-gallery-zoom-btn:hover {
    background-color: rgba(75, 181, 155, 0.9) !important;
}

.sumeru-gallery-zoom-btn svg {
    fill: currentColor;
    display: block;
}

/* Thumbnail Strip Area */
.sumeru-gallery-thumbnails-wrapper {
    position: relative;
    width: 100%;
    margin-top: 15px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sumeru-gallery-thumbnails-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    gap: 10px;
    padding: 5px 0;
    scrollbar-width: none;
    /* Hide standard Firefox scrollbar */
}

.sumeru-gallery-thumbnails-scroll::-webkit-scrollbar {
    display: none;
    /* Hide Chrome/Safari scrollbar */
}

.sumeru-gallery-thumb {
    flex: 0 0 auto;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    opacity: 0.6;
    overflow: hidden;
}

.sumeru-gallery-thumb:hover {
    opacity: 0.9;
}

.sumeru-gallery-thumb.active {
    opacity: 1;
    border-color: #4bb59b;
}

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

/* Fullscreen Lightbox Modal */
.sumeru-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sumeru-lightbox-modal.show {
    display: flex;
    opacity: 1;
}

.sumeru-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sumeru-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.sumeru-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
    background-color: rgba(15, 23, 42, 0.4) !important;
    font-size: 30px !important;
    font-weight: 300 !important;
    cursor: pointer;
    z-index: 100000;
    background: none;
    border: none;
    line-height: 1;
    border: 1px solid #fff;
    border-radius: 3px !important;
    padding: 6px 12px !important;
}

.sumeru-lightbox-close:hover {
    background-color: rgba(75, 181, 155, 0.9) !important;
}

.sumeru-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    /* background: rgba(15, 23, 42, 0.5); */
    background-color: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid #fff;
    border-radius: 3px !important;
    width: 44px;
    height: 44px;
    padding: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.sumeru-lightbox-arrow:hover {
    background-color: rgba(75, 181, 155, 0.9) !important;
}

.sumeru-lightbox-arrow-left {
    left: 20px;
}

.sumeru-lightbox-arrow-right {
    right: 20px;
}



.sumeru-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #cbd5e1;
    font-family: Montserrat, sans-serif;
    font-size: 0.9rem;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.6);
    padding: 4px 12px;
    border-radius: 12px;
}