/* SEE&BOSS Reference Gallery Elementor Widget Styles */

/* Logo Button Style */
.sb-ref-logo-button {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 30px 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.sb-ref-logo-button:hover {
    transform: scale(1.05);
}

.sb-ref-logo-button:active {
    transform: scale(0.98);
}

.sb-ref-logo-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* Off-Canvas Overlay */
.sb-ref-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 999;
}

.sb-ref-offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Off-Canvas Panel */
.sb-ref-offcanvas {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 800px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sb-ref-offcanvas.active {
    right: 0;
}

/* Off-Canvas Header */
.sb-ref-offcanvas-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #7c7c7c 0%, #2a2a2a 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #1a1a1a;
}

.sb-ref-offcanvas-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.sb-ref-close-button {
    background: transparent;
    border: 2px solid white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sb-ref-close-button:hover {
    background: white;
    color: #2a2a2a;
}

/* Gallery Grid */
.sb-ref-gallery-container {
    padding: 30px;
}

.sb-ref-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sb-ref-gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    cursor: pointer;
    aspect-ratio: 1;
    border: 1px solid #e0e0e0;
}

.sb-ref-gallery-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sb-ref-gallery-item img,
.sb-ref-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sb-ref-gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(124, 124, 124, 0.95) 0%, rgba(42, 42, 42, 0.95) 100%);
    padding: 12px 15px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sb-ref-gallery-item:hover .sb-ref-gallery-item-overlay {
    opacity: 1;
}

.sb-ref-gallery-item-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.sb-ref-video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #7c7c7c 0%, #2a2a2a 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

/* Lightbox */
.sb-ref-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.sb-ref-lightbox.active {
    display: flex;
}

.sb-ref-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.sb-ref-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.sb-ref-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Navigation Buttons */
.sb-ref-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    user-select: none;
}

.sb-ref-lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.sb-ref-lightbox-prev {
    left: 30px;
}

.sb-ref-lightbox-next {
    right: 30px;
}

.sb-ref-lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .sb-ref-offcanvas {
        width: 100%;
        max-width: 100%;
    }

    .sb-ref-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .sb-ref-logo-button {
        padding: 20px 30px;
    }

    .sb-ref-logo-image {
        width: 80px;
        height: 80px;
    }

    .sb-ref-lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .sb-ref-lightbox-prev {
        left: 10px;
    }

    .sb-ref-lightbox-next {
        right: 10px;
    }
}
