/* Page-specific styles for the gallery page. */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    max-width: 1120px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-color: rgba(154, 122, 50, 0.16);
    border-radius: 10px;
    background: #fffdf8;
    box-shadow: 0 12px 30px rgba(40, 35, 29, 0.045);
}

.gallery-image-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: inherit;
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f4efe4;
    object-fit: cover;
}

.gallery-item-body {
    padding: 18px 19px 20px;
}

.gallery-item-body h2 {
    margin: 0 0 7px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.18;
}

.gallery-item-body p {
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.68;
}

@media (max-width: 860px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
    }

    .gallery-item-body {
        padding: 16px 17px 18px;
    }
}
