.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--headingColor);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.gallery-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color1);
    border-radius: 2px;
}

.gallery-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 20px auto 0;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.album-card {
    background: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

.album-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--color1);
}

.album-card-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--color5);
}

.album-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-card:hover .album-card-image img {
    transform: scale(1.1);
}

.no-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color1) 0%, var(--color3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.album-card:hover .album-card-overlay {
    opacity: 1;
}

.album-card-content {
    padding: 20px;
}

.album-card-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--headingColor);
    margin-bottom: 10px;
}

.album-card-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--color5);
}

.photo-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--color1);
    font-weight: 600;
    font-size: 0.9rem;
}

.album-date {
    font-size: 0.85rem;
    color: var(--text-color);
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow-y: auto;
}

.gallery-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--secondry-text-color);
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--color1);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondry-text-color);
}

.modal-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--color2);
}

.modal-header p {
    font-size: 1.1rem;
    color: #ccc;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.modal-photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.modal-photo-item:hover {
    transform: scale(1.02);
    border-color: var(--color1);
    box-shadow: 0 10px 30px rgba(0, 191, 165, 0.3);
}

.modal-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.modal-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--secondry-text-color);
    padding: 40px 15px 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-photo-item:hover .modal-photo-caption {
    opacity: 1;
}

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

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--secondry-text-color);
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--color1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 191, 165, 0.3);
    border: none;
    color: var(--secondry-text-color);
    font-size: 30px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--color1);
}

.lightbox-prev {
    left: 20px;
    border-radius: 0 5px 5px 0;
}

.lightbox-next {
    right: 20px;
    border-radius: 5px 0 0 5px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--secondry-text-color);
    font-size: 1.1rem;
    background: var(--color3);
    padding: 10px 25px;
    border-radius: 25px;
}

.no-albums {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-color);
}

.no-albums h3 {
    font-size: 1.5rem;
    color: var(--headingColor);
}

@media (max-width: 768px) {
    .gallery-header h1 {
        font-size: 2rem;
    }

    .albums-grid {
        grid-template-columns: 1fr;
    }

    .modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .modal-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        padding: 20px 10px;
    }

    .modal-content {
        margin: 20px auto;
    }
}