.ds-teds-gallery-grid-f97b355f {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    width: 100%;
}

@media (max-width: 1024px) {
    .ds-teds-gallery-grid-f97b355f {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .ds-teds-gallery-grid-f97b355f {
        grid-template-columns: 1fr;
    }
}

.ds-teds-gallery-item-f97b355f {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
}

.ds-teds-gallery-aspect-ratio-f97b355f {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.ds-teds-gallery-aspect-ratio-f97b355f img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.ds-teds-gallery-overlay-f97b355f {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 300ms ease;
    z-index: 1;
}

.ds-teds-gallery-item-f97b355f:hover .ds-teds-gallery-overlay-f97b355f {
    background: rgba(0, 0, 0, 0.3);
}

.ds-teds-gallery-item-f97b355f:focus {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}

/* Lightbox Styles */
.ds-teds-lightbox-f97b355f {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.ds-teds-lightbox-f97b355f.active {
    opacity: 1;
    visibility: visible;
}

.ds-teds-lightbox-content-f97b355f {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.ds-teds-lightbox-content-f97b355f img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.ds-teds-lightbox-close-f97b355f {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 5px;
}
