.acf-gallery-widget-d7d07f97 {
    width: 100%;
    font-family: inherit;
}

.acf-gallery-main-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
}

.acf-gallery-main-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    cursor: zoom-in;
}

.acf-gallery-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 1;
}

.acf-gallery-main-image.fading {
    opacity: 0;
}

.acf-gallery-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
    z-index: 2;
}

.acf-gallery-nav-btn {
    pointer-events: auto;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
}

.acf-gallery-nav-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

/* CAROUSEL IN A SINGLE ROW - HORIZONTAL SCROLL ONLY */
.acf-gallery-thumbnails-outer-d7d07f97 {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scrollbar-width: none !important; /* Firefox */
}

.acf-gallery-thumbnails-outer-d7d07f97::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Edge */
}

.acf-gallery-thumbnails-d7d07f97 {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    width: 100% !important;
}

.acf-gallery-thumb-d7d07f97 {
    flex: 0 0 80px !important; /* Fixed base size to ensure horizontal row behavior */
    width: 80px !important;
    height: 60px !important;
    min-width: 0 !important;
    position: relative !important;
    cursor: pointer !important;
    overflow: hidden !important;
    transition: opacity 0.2s !important;
}

.acf-gallery-thumb-d7d07f97 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.acf-gallery-thumb-d7d07f97:not(.active):hover {
    opacity: 0.8 !important;
}

/* LIGHTBOX STYLES */
.acf-gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.92);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.acf-gallery-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.acf-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
    z-index: 10;
}

.acf-lightbox-close:hover {
    color: #bbb;
}

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

.acf-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.25s ease-out;
    cursor: zoom-in;
    user-select: none;
}

.acf-lightbox-img.zoomed {
    transform: scale(2.2);
    cursor: zoom-out;
}

.acf-lightbox-caption {
    margin-top: 15px;
    color: #fff;
    font-size: 15px;
    text-align: center;
    max-width: 80%;
}
