:root {
    --vssc-primary: #fa4047;
    --vssc-blue: #2a5aa5;
    --vssc-teal: #00a79d;
    --vssc-green: #38b449;
    --vssc-white: #ffffff;
    --vssc-gray: #f4f6f8;
    --vssc-text-dark: #1a202c;
}

/* ===== GALLERY WRAPPER ===== */
.vssc-gallery-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== GALLERY FILTERS ===== */
.vssc-gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.vssc-filter-btn {
    background: var(--vssc-white);
    border: 2px solid var(--vssc-gray);
    color: var(--vssc-text-dark);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vssc-filter-btn:hover {
    border-color: var(--vssc-primary);
    color: var(--vssc-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 64, 71, 0.2);
}

.vssc-filter-btn.active {
    background: var(--vssc-primary);
    border-color: var(--vssc-primary);
    color: var(--vssc-white);
    box-shadow: 0 8px 20px rgba(250, 64, 71, 0.3);
}

/* ===== GALLERY GRID ===== */
.vssc-gallery-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(4, 1fr);
}

.vssc-gallery-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.vssc-gallery-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.vssc-gallery-grid[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

/* ===== GALLERY ITEM ===== */
.vssc-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vssc-gallery-item.hidden {
    display: none;
}

.vssc-gallery-item-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.vssc-gallery-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.vssc-gallery-item:hover {
    transform: translateY(-8px);
}

.vssc-gallery-item:hover .vssc-gallery-item-inner {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.vssc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vssc-gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== GALLERY TITLE BELOW IMAGE ===== */
.vssc-gallery-title {
    background: var(--vssc-primary);
    padding: 15px;
    text-align: center;
}

.vssc-gallery-title h3 {
    color: var(--vssc-white);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== GALLERY OVERLAY (ZOOM ICON ONLY) ===== */
.vssc-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.vssc-gallery-item:hover .vssc-gallery-overlay {
    opacity: 1;
}

/* ===== ZOOM BUTTON ===== */
.vssc-gallery-zoom-btn {
    background: var(--vssc-white);
    color: var(--vssc-primary);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: scale(0);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.vssc-gallery-item:hover .vssc-gallery-zoom-btn {
    transform: scale(1);
}

.vssc-gallery-zoom-btn:hover {
    background: var(--vssc-primary);
    color: var(--vssc-white);
    transform: scale(1.1);
}

.vssc-gallery-zoom-btn svg {
    width: 28px;
    height: 28px;
}

/* ===== LIGHTBOX ===== */
.vssc-gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vssc-gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.vssc-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

/* ===== LIGHTBOX NAVIGATION BUTTONS ===== */
.vssc-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vssc-text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.vssc-lightbox-nav:hover {
    background: var(--vssc-primary);
    color: var(--vssc-white);
    transform: translateY(-50%) scale(1.1);
}

.vssc-lightbox-prev {
    left: 20px;
}

.vssc-lightbox-next {
    right: 20px;
}

.vssc-lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.vssc-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 1;
}

/* Lightbox Animation Classes */
.vssc-lightbox-content.anim-zoomIn {
    animation: lightboxZoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vssc-lightbox-content.anim-fadeIn {
    animation: lightboxFadeIn 0.4s ease;
}

.vssc-lightbox-content.anim-slideDown {
    animation: lightboxSlideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vssc-lightbox-content.anim-flipIn {
    animation: lightboxFlipIn 0.5s ease;
}

.vssc-lightbox-content.anim-rotateIn {
    animation: lightboxRotateIn 0.5s ease;
}

.vssc-lightbox-content.anim-bounceIn {
    animation: lightboxBounceIn 0.6s ease;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.3);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes lightboxSlideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes lightboxFlipIn {
    from {
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }
    to {
        transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes lightboxRotateIn {
    from {
        transform: rotate(-200deg) scale(0.3);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes lightboxBounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.vssc-lightbox-image-wrap {
    text-align: center;
    transition: opacity 0.15s ease;
}

.vssc-lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 5px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.vssc-lightbox-info {
    text-align: center;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.vssc-lightbox-title {
    color: var(--vssc-white);
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.vssc-lightbox-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.vssc-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--vssc-white);
    border: none;
    color: var(--vssc-text-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.vssc-lightbox-close:hover {
    background: var(--vssc-primary);
    color: var(--vssc-white);
    transform: rotate(90deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .vssc-gallery-grid[data-columns="5"] {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .vssc-gallery-grid,
    .vssc-gallery-grid[data-columns="4"],
    .vssc-gallery-grid[data-columns="5"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .vssc-gallery-grid,
    .vssc-gallery-grid[data-columns="3"],
    .vssc-gallery-grid[data-columns="4"],
    .vssc-gallery-grid[data-columns="5"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vssc-gallery-filters {
        gap: 10px;
    }
    
    .vssc-filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .vssc-gallery-title h3 {
        font-size: 14px;
    }
    
    .vssc-gallery-zoom-btn {
        width: 50px;
        height: 50px;
    }
    
    .vssc-gallery-zoom-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .vssc-lightbox-title {
        font-size: 18px;
    }
    
    .vssc-lightbox-description {
        font-size: 14px;
    }
    
    .vssc-lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .vssc-lightbox-prev {
        left: 10px;
    }
    
    .vssc-lightbox-next {
        right: 10px;
    }
    
    .vssc-lightbox-nav svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .vssc-gallery-grid[data-columns="2"] {
        grid-template-columns: 1fr;
    }
}
