/* =========================================================
   PHOTO GALLERY - BASE
========================================================= */
.shl-photo-gallery {
    position: relative;
    width: 100%;
}

/* =========================================================
   CAROUSEL EXTERIOR
========================================================= */
.shl-photo-gallery-item {
    position: relative;
    overflow: hidden;
}

.shl-photo-gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.shl-photo-gallery-image {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform .5s ease, opacity .3s ease;
}

.shl-photo-gallery-open:hover .shl-photo-gallery-image {
    transform: scale(1.03);
    opacity: .88;
}

/* Flechas SVG exclusivamente del carrusel exterior (no del overlay). */
.shl-photo-gallery .shl-photo-gallery-carousel>.owl-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.shl-photo-gallery .shl-photo-gallery-carousel>.owl-nav button.owl-prev,
.shl-photo-gallery .shl-photo-gallery-carousel>.owl-nav button.owl-next {
    width: 46px;
    height: 46px;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #252834 !important;
    color: #fff !important;
    /* border: 2px solid #6DC5D4 !important; */
    border-radius: 50% !important;
    cursor: pointer;
    transition: background .25s ease, opacity .25s ease;
}

.shl-photo-gallery .shl-photo-gallery-carousel>.owl-nav button.owl-prev:hover,
.shl-photo-gallery .shl-photo-gallery-carousel>.owl-nav button.owl-next:hover {
    background: #6DC5D4 !important;
}

.shl-photo-gallery .shl-photo-gallery-carousel>.owl-nav button svg {
    display: block;
    width: 20px;
    height: 20px;
}

.shl-photo-gallery .shl-photo-gallery-carousel>.owl-nav button.disabled {
    opacity: .3;
    cursor: default;
}

/* =========================================================
   OVERLAY / MODAL (ESTILOS ORIGINALES RESTAURADOS)
========================================================= */
.shl-photo-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: rgba(0, 0, 0, .94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
}

.shl-photo-gallery-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.shl-photo-gallery-modal-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1500px;
    height: 100%;
}

.shl-photo-gallery-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 46px;
    font-weight: 200;
    line-height: 1;
    cursor: pointer;
    transition: opacity .2s ease;
}

.shl-photo-gallery-close:hover {
    opacity: .55;
}

.shl-photo-gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    padding: 30px 80px 35px;
}

.shl-photo-gallery-main-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.shl-photo-gallery-main-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 230px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.shl-photo-gallery-prev,
.shl-photo-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 60px;
    height: 80px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 60px;
    font-weight: 200;
    cursor: pointer;
    opacity: .8;
    transition: opacity .2s ease;
}

.shl-photo-gallery-prev:hover,
.shl-photo-gallery-next:hover {
    opacity: .4;
}

.shl-photo-gallery-prev {
    left: 0;
}

.shl-photo-gallery-next {
    right: 0;
}

.shl-photo-gallery-thumbs {
    flex: 0 0 auto;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 10px;
}

.shl-photo-gallery-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: .45;
    transition: opacity .25s ease, transform .25s ease;
}

.shl-photo-gallery-thumb:hover {
    opacity: .8;
}

.shl-photo-gallery-thumb.is-active {
    opacity: 1;
}

.shl-photo-gallery-thumb img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
}

.shl-photo-gallery-thumb.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #fff;
}

body.shl-gallery-open {
    overflow: hidden;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 767px) {
    .shl-photo-gallery-modal {
        padding: 20px 15px;
    }

    .shl-photo-gallery-stage {
        padding: 50px 35px 25px;
    }

    .shl-photo-gallery-prev,
    .shl-photo-gallery-next {
        width: 35px;
        height: 60px;
        font-size: 42px;
    }

    .shl-photo-gallery-main-image {
        max-height: calc(100vh - 190px);
    }

    .shl-photo-gallery-thumb img {
        height: 65px;
    }

    .shl-photo-gallery-close {
        width: 40px;
        height: 40px;
        font-size: 38px;
    }

    .shl-photo-gallery .shl-photo-gallery-carousel>.owl-nav {
        gap: 12px;
        margin-top: 18px;
    }

    .shl-photo-gallery .shl-photo-gallery-carousel>.owl-nav button.owl-prev,
    .shl-photo-gallery .shl-photo-gallery-carousel>.owl-nav button.owl-next {
        width: 40px;
        height: 40px;
    }
}