﻿/* Загальні стилі для сітки альбомів */
.gallery-albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.album-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
    padding: 15px;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.album-card:hover {
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
}

.album-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #333;
    text-decoration: none;
}

.album-description {
    font-size: 0.9rem;
    color: #666;
}

/* Сітка фото в альбомі */
.gallery-images-grid {
    column-count: 4;
    column-gap: 15px;
    padding: 10px 0;
}

.gallery-image-item {
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.1);
}

.gallery-image-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 6px;
}

.gallery-image-item img:hover {
    transform: scale(1.05);
}

/* Адаптивність */
@media (max-width: 1200px) {
    .gallery-images-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .gallery-images-grid {
        column-count: 2;
    }

    .gallery-albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery-images-grid {
        column-count: 1;
    }
}