/* ============================================
   Gallery Lightbox Plugin Styles
   ============================================ */

/* GLightbox Customization */
.goverlay {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(8px);
}

.glightbox-clean .gprev,
.glightbox-clean .gnext {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.glightbox-clean .gprev:hover,
.glightbox-clean .gnext:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.glightbox-clean .gprev {
    left: 20px;
}

.glightbox-clean .gnext {
    right: 20px;
}

@media (min-width: 769px) {
    .glightbox-clean .gprev,
    .glightbox-clean .gnext {
        top: 50%;
        transform: translateY(-50%);
    }

    .glightbox-clean .gprev:hover,
    .glightbox-clean .gnext:hover {
        transform: translateY(-50%) scale(1.05);
    }
}

.glightbox-clean .gclose {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    top: 20px;
    right: 20px;
    transition: all 0.2s ease;
}

.glightbox-clean .gclose:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.glightbox-clean .gclose svg {
    width: 20px;
    height: 20px;
}

.glightbox-clean .gslide-media {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border-radius: 0.75rem;
    overflow: hidden;
}

.gslide-image img {
    border-radius: 0.75rem;
}

.glightbox-clean .gslide-description {
    display: none !important;
}

.gloader {
    border-color: currentColor;
    border-right-color: transparent;
}

/* Gallery Masonry Grid (Z-Pattern with Masonry.js) */
.gallery-masonry {
    margin: 0 -4px;
}

.gallery-masonry-item,
.gallery-grid-sizer {
    width: 50%;
    padding: 0 4px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .gallery-masonry-item,
    .gallery-grid-sizer {
        width: 33.333%;
    }
}

@media (min-width: 1024px) {
    .gallery-masonry-item,
    .gallery-grid-sizer {
        width: 25%;
    }
}

.gallery-masonry-item > a {
    display: block;
}

.gallery-masonry-item a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: #f3f4f6;
}

.gallery-masonry-item img,
.gallery-masonry-item video {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.gallery-masonry-item a:hover img,
.gallery-masonry-item a:hover video {
    transform: scale(1.03);
}

.gallery-masonry-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-masonry-item a:hover .gallery-overlay {
    opacity: 1;
}

/* Video Play Button */
.gallery-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.gallery-play-button svg {
    width: 40px;
    height: 40px;
    color: white;
    margin-left: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gallery-masonry-item a:hover .gallery-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Gallery Filter */
.gallery-filter {
    margin-bottom: 1.5rem;
}

.gallery-filter label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.gallery-filter select {
    display: block;
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    color: #1f2937;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.gallery-filter select:hover {
    border-color: #93c5fd;
}

.gallery-filter select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Count Display */
.gallery-count {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1.5rem;
}
