/* drive-gallery-v2/assets/gallery-v2.css */

.dgv2-gallery-wrapper {
    margin: 20px 0;
    --dgv2-columns: 4;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #f0f0f0;
}

/* --- TABS NAVIGATION --- */
.dgv2-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    overflow-x: auto;
    /* Allows swiping on mobile */
    scrollbar-width: none;
    /* Hides scrollbar on Firefox */
    -ms-overflow-style: none;
    /* Hides scrollbar on IE/Edge */
}

.dgv2-tabs::-webkit-scrollbar {
    display: none;
    /* Hides scrollbar on Chrome/Safari */
}

.dgv2-tabs a {
    text-decoration: none !important;
    color: #888;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape */
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 1px solid transparent;
}

.dgv2-tabs a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.dgv2-tabs a.is-active {
    color: #1a1a1a;
    background: #fff;
    /* High contrast for active tab */
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* --- THE GRID --- */
.dgv2-grid {
    display: grid;
    grid-template-columns: repeat(var(--dgv2-columns), minmax(0, 1fr));
    gap: 20px;
}

.dgv2-card {
    margin: 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dgv2-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dgv2-link {
    display: block;
    line-height: 0;
}

.dgv2-link img {
    width: 100%;
    height: 300px;
    /* Uniform height for a clean grid */
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
    filter: brightness(0.9);
}

.dgv2-card:hover img {
    filter: brightness(1.1);
}

/* --- LIGHTBOX MODAL --- */
.dgv2-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

.dgv2-lightbox.is-open {
    display: flex;
}

.dgv2-lightbox-inner {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
}

.dgv2-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    height: auto;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.dgv2-lightbox-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dgv2-lightbox-title {
    color: #aaa;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    .dgv2-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .dgv2-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .dgv2-grid {
        grid-template-columns: 1fr;
    }

    .dgv2-link img {
        height: 250px;
    }
}