.gallerySmallView .creditsBoxSmall h6 {
    padding: 0 !important;
    font-size: 11.5px;
    line-height: 17.6px;
    font-weight: 700;
    opacity: 0.5;
    text-transform: uppercase;
    margin-bottom: 5%;
}
.thumbnailBox {
    display: block;
    overflow: hidden;
}
.gallerySmallView .creditsBoxSmall p {
    font-size: 20px;
    line-height: 24px;
    font-weight: 300;
    margin-top: 7px;
    margin-bottom: 7px;
}

.gallerySmallView .creditsBoxSmall a {
    color: inherit;
    text-decoration: none;
}
.gallerySmallView .creditsBoxSmall a:hover {
    opacity: 0.6;
    text-decoration: none;
}
.gallerySmallView .thumbnailVideo {
    font-size: 20.8px;
    font-weight: 300;
    line-height: 24px;
    width: 100%;
    display: block;
}
.gallerySmallView .thumbnailImage {
    cursor: pointer;
    display: block;
    height: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
.galleryFullView {
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100% !important;
    margin: 0 !important;
    z-index: 9999999;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.backgroundOpacity {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    height: 100%;
    width: 100%;
}

.galleryFullView .creditsBoxFull {
    box-sizing: border-box;
    color: white;
    font-size: large;
    overflow-wrap: break-word;
}
.galleryFullView .creditsBoxFull h2 {
    font-size: 32px;
    line-height: 32px;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: sans-serif;
    margin-bottom: 10%;
    color: #fff;

}

.galleryFullView .creditsBoxFull .creditFullDesc {
    margin: 0;
    font-size: 12px;
    line-height: 20px;
    font-weight: 600;
    font-family: sans-serif;
    text-transform: uppercase;
}


.galleryFullView .creditsBoxFull .creditFullName {
    margin: 0;
    margin-bottom: 5%;
    font-size: 24px;
    line-height: 24px;
    font-weight: 300;
}
.galleryFullView .creditsBoxFull .creditFullName a {
    color: inherit;
    text-decoration: none;
}

.galleryFullView .creditsBoxFull .creditFullName a:hover {
    opacity: 0.7;
    text-decoration: none;
}

.galleryFullView .contentFull {
    height: 100%;
    position: absolute;
    z-index: 9999999;
    left: 25%;
    top: 125px;
    right: 0;
    width: 65%;
}

.galleryFullView .contentFull .imageWrapper {
    max-width: none;
    max-height: none;
    box-sizing: border-box;

}

.galleryFullView .contentFull .imageWrapper .galleryImageFull {
    margin: 0 auto 1vw auto;
    box-sizing: border-box;
    display: block;
    width: auto;
}

.galleryFullView .contentFull .videoWrapper {
    height: 100%;
}

.galleryFullView .contentFull .videoWrapper .videoFull {
    width:  100% !important;
    margin: 0 auto 0 auto;
    min-height: 70vh;
}


.exitBtn {
    position: fixed;
    cursor: pointer;
    top: 40px;
    right: 2vw;
    z-index: 99999999;
    height: 50px;
    width: 50px;
}

.gridViewBtn {
    position: fixed;
    cursor: pointer;
    top: 125px;
    right: 1.9vw;
    z-index: 99999999;
    height: 50px;
    width: 50px;
}

.toggleGrid {
    width: 100%;
    max-width: 1200px;
    float: right;
}

.imageGrid {
    box-sizing: border-box;
    display: inline-block;
    width: 24%;
    margin: 0;
    margin-right: 0 !important;
    padding: 0 0 0 2%;
}

.fixed-col {
    position: fixed;
    top: 125px;
    z-index: 99999999;
    width: 20%;
    right: auto;
    display: block;
    max-width: 1600px;
    margin-right: auto;
    margin-left: auto;
    left: calc(50% - 780px)
}

.largeViewFix {
    position: fixed !important;
    overflow: hidden;
    z-index: -100 !important;
}

html.largeView,
html.largeView body,
body.gallery-scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
    scrollbar-gutter: stable;
}

.fixed-col {
    left: 5%;
}

.flex-container .fusion-column-wrapper{
    margin-top: auto;
    display: inline-flex;
    align-items: flex-end;
}
.flex-container .fusion-layout-column{
    float: none;
    display: inline-flex;
}

/* thumbGalleryGrid layout is handled by the grid rules below */

/* Tablet adjustments */
@media only screen and (max-width: 1300px) {
    .creditsBoxFull {
        max-width: 200px;
    }

    .contentFull {
    }

    .contentFull.toggleGrid {
    }

    .imageGrid {
        width: 32%;
    }

    .videoWrapper {
        height: auto !important;
        margin-bottom: 5vh;
    }

    .videoFull {
        min-height: auto !important;

    }
}

/* Phone adjustments */
@media only screen and (max-width: 765px) {
    
    .fixed-col {
        left: 0;
        right: 0;
        width: auto;
        position: absolute;
        top: 16px;
        margin: 0;
        padding: 0 16px;
    }
    .galleryFullView .creditsBoxFull h2{
        margin-bottom: 0px;
    }

    .fixed-col .creditsBoxFull {
        margin-top: 0px;
        position: static;
    }

    .contentFull {
        min-height: auto !important;
    }
    .creditsBoxFull {
        max-width: 100vw;
    }
    .galleryFullView .contentFull{
        left: 1%;
        right: 1%;
        width: 98%;
    }

    .thumbnailBox .creditsBoxSmall{
        opacity: 1 !important;
    }

}
/* --- Fade in/out overlay gallery --- */
.galleryFullView{display:none;}


/* --- Responsive image sizing fixes --- */
.gallerySmallView,
.gallerySmallView > div:first-child,
.thumbnailBox .thumbnail,
.thumbnailBox .thumbnailImage,
.thumbnailBox .thumbnailVideo {
    width: 100%;
}

.thumbnailBox {
    box-sizing: border-box;
}

.thumbnailBox .thumbnail,
.thumbnailBox .thumbnailImage,
.thumbnailBox .thumbnailVideo {
    display: block;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain;
}

/* --- thumbGalleryGrid: flex layout, 2 columns per row --- */
.thumbGalleryGrid {
    display: block;
    width: 100%;
}

.thumbGalleryRow {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.thumbGalleryRow .thumbnailBox {
    flex: 0 0 calc(50% - 12px);
    width: calc(50% - 12px);
    max-width: calc(50% - 12px) !important;
    box-sizing: border-box;
    margin: 0 !important;
}

.gallerySmallView .creditsBoxSmall {
    margin-top: 12px;
}

.galleryFullView .contentFull {
    box-sizing: border-box;
    padding-right: 2vw;
}

.galleryFullView .contentFull .imageWrapper {
    width: 100%;
    margin: 0 0 24px;
    overflow: hidden;
}

.galleryFullView .contentFull .imageWrapper .galleryImageFull {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 150px);
    object-fit: contain;
}

.galleryFullView .contentFull.toggleGrid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.galleryFullView .contentFull.toggleGrid .imageWrapper,
.galleryFullView .contentFull .imageWrapper.imageGrid {
    flex: 0 0 calc(50% - 12px);
    width: calc(50% - 12px);
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.galleryFullView .contentFull.toggleGrid .galleryImageFull,
.galleryFullView .contentFull .imageWrapper.imageGrid .galleryImageFull {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
}

@media only screen and (max-width: 1300px) {
    .thumbGalleryRow {
        gap: 20px;
    }

    .thumbGalleryRow .thumbnailBox {
        flex: 0 0 calc(50% - 10px);
        width: calc(50% - 10px);
        max-width: calc(50% - 10px) !important;
    }

    .galleryFullView .contentFull {
        left: 32%;
        width: 63%;
    }

    .fixed-col {
        width: 24%;
        left: 4%;
    }

    .galleryFullView .contentFull .imageWrapper .galleryImageFull {
        max-height: calc(100vh - 120px);
    }
}

@media only screen and (max-width: 765px) {
    .thumbGalleryRow {
        flex-direction: column;
        gap: 18px;
        margin-bottom: 18px;
    }

    .thumbGalleryRow .thumbnailBox {
        flex: 0 0 100%;
        width: 100% !important;
        max-width: 100% !important;
    }

    .galleryFullView .contentFull {
        position: relative;
        left: 0;
        right: 0;
        width: 100%;
        top: 0;
        padding: 0 16px 20px;
    }

    .galleryFullView .creditsBoxFull h2 {
        margin-bottom: 6px;
    }

    .galleryFullView .contentFull .imageWrapper {
        margin-bottom: 18px;
    }

    .galleryFullView .contentFull .imageWrapper .galleryImageFull {
        width: 100%;
        max-width: 100%;
        max-height: none;
    }

    .galleryFullView .contentFull.toggleGrid {
        flex-direction: column;
        gap: 18px;
    }

    .galleryFullView .contentFull.toggleGrid .imageWrapper,
    .galleryFullView .contentFull .imageWrapper.imageGrid {
        flex: 0 0 100%;
        width: 100%;
    }

    .fixed-col {
        width: auto;
        margin: 0;
        padding: 0 16px;
        top: 16px;
    }
}


@media only screen and (max-width: 765px) {
    .gridViewBtn {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .galleryFullView .contentFull .imageWrapper:first-child {
        margin-top: 130px !important;
    }
}
