
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 15px;
    background: white;
}

.gallery-caption h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.gallery-caption a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 999;
}

.lightbox:target {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-controls {
    position: fixed;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.lightbox-btn {
    color: white;
    text-decoration: none;
    font-size: 24px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 5px;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    text-decoration: none;
    font-size: 30px;
    z-index: 1000;
}
