#gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.gallery-img {
    width: calc(33.33% - 1rem);
    aspect-ratio: 4 / 3; /* Maintain consistent aspect ratio */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: block;
    max-width: 100%;
}

.gallery-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Tablet: 2 images per row */
@media (max-width: 768px) {
    .gallery-img {
        width: calc(50% - 1rem);
    }
}

/* Mobile: 1 image per row */
@media (max-width: 480px) {
    .gallery-img {
        width: 100%;
    }
}

.drive-folders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
}

.drive-folder {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.drive-folder:hover {
    transform: translateY(-3px);
    background: #e9e9e9;
}

.drive-folder i {
    font-size: 2rem;
    color: #FFC107;
    display: block;
    margin-bottom: 8px;
}

.loading, .error {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
}

.gallery-buttons ,.sub-gallery-buttons{
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gallery-buttons button {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-buttons button:hover {
    background-color: var(--darker-grey);
    transform: translateY(-3px);
}

.gallery-buttons .active a{
    background-color: black;
    color:white;
}


.gallery-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.lightbox-content a {
    margin-top: 1rem;
    display: inline-block;
    color: white;
    background-color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.btn-secondary {
    margin-top: 2rem;
    display: inline-block;
    background-color: var(--primary);
    color: var(--secondary);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--darker-grey);
    transform: translateY(-3px);
}

.loading, .error {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #555;
}

.error {
    color: #d32f2f;
}