.snap-gallery-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.snap-gallery-wrapper {
    display: flex;
    flex: 1;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 24px;
}

.snap-gallery-wrapper::-webkit-scrollbar,
.snap-gallery-fullscreen .snap-gallery-wrapper::-webkit-scrollbar,
.snap-gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.snap-gallery-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 100%;
    box-sizing: border-box;
}

.snap-gallery-slide img,
.snap-gallery-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.snap-gallery-image-container {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.snap-gallery-info {
    position: relative;
    width: 100%;
    padding: 1rem 0;
    margin-top: 1rem;
    color: inherit;
    flex-shrink: 0;
    padding-right: 80px;
    line-height: 1.3333333333;
}

.snap-gallery-title,
.snap-gallery-photocredits,
.snap-gallery-caption {
    font-weight: 500;
    font-family: "TT Norms", sans-serif;
    font-size: 0.75rem;
    line-height: 1.3333333333;
    letter-spacing: 0.01rem;
    color: #5A5A5A;
    margin: 0;
}
.snap-gallery-title,
.snap-gallery-photocredits {
    display: inline;
}

.snap-gallery-caption:not(:empty) {
    margin-top: 0.5rem;
}

.snap-gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 0;
    font-weight: 500;
    font-family: "TT Norms", sans-serif;
    letter-spacing: 0.01rem;
    font-size: 13px;
    line-height: 1.5;
    background: black;
    color: white;
    padding: 10px 15px;
    border-radius: 2px;
}

.snap-gallery-thumbnails {
    display: flex;
    padding: 1rem 0 0.5rem 0;
    background: #fff;
    border-top: 1px solid #7F8589;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 1rem;
}

/*
@media (min-width: 768px) {
    .snap-gallery-thumbnails {
        height: calc(120px + 24px);
    }
}*/

.snap-gallery-thumb {
    flex: 0 0 100px;
    height: 100px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

@media (min-width: 768px) {
    .snap-gallery-thumb { 
        flex: 0 0 120px;
        height: 120px;
    }
}


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

.snap-gallery-thumb.active {
    opacity: 1;
}

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

.snap-gallery-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.snap-gallery-fullscreen.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.snap-gallery-fullscreen .snap-gallery-wrapper {
    flex: 1;
    height: calc(100vh - 180px);
}

.snap-gallery-fullscreen .snap-gallery-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.snap-gallery-fullscreen .snap-gallery-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.snap-gallery-fullscreen img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.snap-gallery-fullscreen .snap-gallery-info {
    color: white;
}
.snap-gallery-fullscreen .snap-gallery-title,
.snap-gallery-fullscreen .snap-gallery-caption {
    color: #fff;
}

.snap-gallery-fullscreen .snap-gallery-thumbnails {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    /*height: 80px;*/
}

.snap-gallery-fullscreen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 40px;
}

.snap-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #000;
    z-index: 2;
    padding: 20px;
    border: none;
    background-color: transparent;
}
.snap-gallery-nav span {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #7F8589;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.snap-gallery-nav:hover span {
    background: rgba(255, 255, 255, 0.95);
}

.snap-gallery-nav.prev {
    left: 0;
    padding-left: 0;
}

.snap-gallery-nav.next {
    right: 0;
    padding-right: 0;
}

.snap-gallery-nav.disabled {
    opacity: 0.3;
    cursor: default;
}

.snap-gallery-close {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.snap-gallery-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .snap-gallery-fullscreen-content {
        padding: 20px;
    }

    .snap-gallery-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .snap-gallery-container {
        height: 300px;
    }
}