/* Frontend Styles */
.sw-gallery-container {
    display: grid;
    gap: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.media-item {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    aspect-ratio: 1/1;
    border: none !important;
    outline: none !important;
    transition: none !important;
}

.aspect-16-9 .media-item {
    aspect-ratio: 16/9;
}

.aspect-9-16 .media-item {
    aspect-ratio: 9/16;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none !important;
    outline: none !important;
}

/* Remove all hover effects */
.media-item:hover,
.media-item:focus,
.media-item img:hover,
.media-item img:focus,
.media-item a:hover,
.media-item a:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-cover-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 3;
    background: #fff;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-cover.hidden {
    opacity: 0;
}

.video-player {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.glightbox-container {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.gslide-image img {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
}

.gslide-video {
    max-width: 90vw;
    max-height: 90vh;
    width: 1280px;
    height: 720px;
}

#gallery-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .sw-gallery-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@supports not (aspect-ratio: 1/1) {
    .media-item {
        padding-bottom: 100%;
        height: 0;
    }
    .aspect-16-9 .media-item {
        padding-bottom: 56.25%;
    }
    .aspect-9-16 .media-item {
        padding-bottom: 177.78%;
    }
    .media-item > * {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}