
.image-banner-wrapper {
    width: 100%;
    overflow: hidden;
}

/* .main-image-container {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border: violet dashed 2px;
} */

.main-image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
}

.large-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* width: 100%; */
    max-width: 2000px;
    margin: 8px auto 0;
    contain: layout style paint;
}

.large-image .main-image-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.large-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center center;
}



.large-image.clip-sides {
    overflow: hidden !important;
}

.large-image.hero-drop-shadow {
    /* padding: 10px; */
    margin: -2px auto 0; /* Adjust margin to compensate for padding */
}

.image-banner-wrapper {
    overflow: visible;
    padding: 10px 0;
}



.zoom-icon.black {
    filter: brightness(0) saturate(100%);
    width: 1.5rem !important;
    height: 1.5rem !important;
    padding: 0;
    margin: 0;
}

.zoom-icon-placer {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    background-color: color-mix(in srgb, var(--mid-2) 40%, transparent);
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    padding: 0.75rem 0;
    z-index: 40;
}

.zoom-icon-wrapper {
    display: inline-block;
    margin-right: 10px;
    min-width: 1.5rem;
    min-height: 1.5rem;
    margin-left: 1rem;
}

.zoom-icon {
    width: 2rem !important;
    height: 2rem !important;
    max-width: 2rem !important;
    opacity: 0.75;
    cursor: pointer;
    transition: opacity 0.2s ease;
    padding: 1px;
}

.zoom-icon-wrapper:hover .zoom-icon {
    opacity: 1;
}


@media (min-width: 1401px) {
    /* Target only the main image using the .main-image class */
    .large-image.clip-sides img.main-image {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
    }

    .large-image.clip-left-only img {
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {

    .large-image.clip-sides {
        max-width: 100%;
        overflow: hidden;
    }

    .large-image.clip-sides .zoom-icon-placer {
        width: 100vw !important;
        left: 50%;
        transform: translateX(-50%);
    }

    /* FIXED: Updated to use the same flexbox approach */
    .large-image.no-small.clip-sides .main-image-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* FIXED: Match the working clip-sides rule */
    .large-image.no-small.clip-sides img.main-image {
        position: relative;
        width: 1400px;
        min-width: 1400px;
        max-width: none;
        height: auto;
        object-fit: cover;
        flex-shrink: 0;
        /* Removed the transform approach */
    }

    .large-image.clip-left-only {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .large-image.clip-left-only {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .large-image.clip-left-only img {
        width: 1400px !important;
        height: auto;
        max-width: none !important;
        flex-shrink: 0;
    }
    
    .large-image.clip-left-only img.main-image {
        width: 1400px;
        min-width: 1400px;
        max-width: none;
        height: auto;
        object-fit: cover;
        flex-shrink: 0;
        display: block;
    }

    .large-image.clip-left-only .main-image-container {
        display: flex;
        flex-direction: row-reverse; /* key for keeping right side */
        justify-content: flex-start; /* align left side of reversed row */
        align-items: center;
        width: 100%;
        overflow: hidden;
    }


    .large-image.clip-sides {
        max-width: 100%;
        overflow: hidden;
    }

    .large-image.clip-sides .main-image-container {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        width: 100%;
    }

    .large-image.clip-sides .main-image-container picture {
        width: 1400px;
        min-width: 1400px;
        max-width: 1400px;
        display: block;
        flex-shrink: 0;
    }

    .large-image.clip-sides .main-image-container img.main-image {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }


    .large-image.clip-sides .zoom-icon-placer {
        width: 100vw !important;
        left: 50%;
        transform: translateX(-50%);
    }

    /* FIXED: Updated to use the same flexbox approach */
    .large-image.no-small.clip-sides .main-image-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* FIXED: Match the working clip-sides rule */
    .large-image.no-small.clip-sides img.main-image {
        position: relative;
        width: 1400px;
        min-width: 1400px;
        max-width: none;
        height: auto;
        object-fit: cover;
        flex-shrink: 0;
        /* Removed the transform approach */
    }

}


.large-image.clip-left-only {
    overflow: hidden !important;
}




@media (max-width: 768px) {

    .main-image {
        display: block !important;
        visibility: visible !important;
    }
    
    .image-banner-wrapper {
        height: 720px;
    }

    .large-image {
        position: relative;
        aspect-ratio: unset;
        height: auto;
        width: 405px;
        margin: 20px auto;
        border-radius: 8px;
    }
    
    .large-image .main-image-container {
        height: 720px;
    }

    .large-image.no-small {
        width: 100vw;
        overflow: hidden;
        margin: 8px 0 0;
        border-radius: 0;
    }
    
    .large-image.no-small .main-image-container {
        height: 700px;
        overflow: hidden;
    }
    
    .large-image.no-small .main-image-container img {
        width: auto;
        min-width: 100%;
        height: 700px;
        object-fit: cover;
        object-position: center center;
    }
}

@media (min-width: 2001px) {
    .large-image {
        border-radius: 12px;
    }
}


figure.large-image {
    margin: 0 auto;     /* Center the figure */
    text-align: center; /* Center content */
}

figure.large-image figcaption {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

figure.large-image.actual-size {
    /* width: 100%; */
    max-width: 2000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

figure.large-image.actual-size .main-image-container {
    width: fit-content;
    max-width: 100%;
    display: block;
}

figure.actual-size .main-image {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

figure.actual-size .zoom-icon-placer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

figure.actual-size figcaption {
    /* width: fit-content; */
    max-width: 100%;
    box-sizing: border-box;
}