.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-header h1 {
    color: #006297;
    margin-bottom: -0.5rem;
    margin-top: 1.5rem;
}

.albums-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.album-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-5px);
}

.album-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.album-info {
    padding: 1.5rem;
}

.album-info h3 {
    color: #006297;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.album-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.photo-count {
    font-size: 0.8rem;
    color: #006297;
    font-weight: bold;
    margin-top: 0.5rem;
}

.gallery-section {
    padding: 2rem;
    margin-bottom: 2rem;
}

.back-to-albums {
    display: inline-block;
    background: #006297;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.back-to-albums:hover {
    background: #024;
    text-decoration: none;
}

.album-title {
    color: #006297;
    border-bottom: 2px solid #006297;
    padding-bottom: 1rem;
    margin-top: 0;
}

.no-albums {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
}

.lightbox-content {
    position: relative;
    max-width: 94vw;
    max-height: 94vh;
    padding: 20px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    background: #111;
}

.lightbox-close {
    position: absolute;
    top: -5px;
    right: 5px;
    font-size: 52px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
    text-shadow: 0 0 15px rgba(0,0,0,0.8);
    transition: all 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.15);
    color: #ff4444;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 100px;
    background: rgba(255,255,255,0.25);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav-btn:hover {
    background: rgba(255,255,255,0.40);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-nav-btn.prev { left: 12px; }
.lightbox-nav-btn.next { right: 12px; }

.lightbox-counter {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding: 20px 0;
}

.photo-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.photo-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.photo-item:hover img {
    transform: scale(1.06);
}

@media (max-width: 768px) {
    .albums-container {
        grid-template-columns: 1fr;
    }
    
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }

    .photo-item {
        aspect-ratio: 4 / 3;
    }

    .gallery-section {
        padding: 1rem;
    }
}