/* --- Gallery & Lightbox Styling --- */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #eee;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox Enhanced */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.lightbox-content {
    position: relative;
    width: 90%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: contain;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s;
    z-index: 10001;
}

.lightbox-btn:hover {
    color: var(--accent-color);
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox-caption {
    position: absolute;
    bottom: -60px;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
    .lightbox-btn { font-size: 2rem; padding: 10px; }
    .gallery-container { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .gallery-item { height: 180px; }
}
