.aof-gallery {
    padding: 60px 0;
    background: #fff;
}

.aof-gallery__group {
    margin-bottom: 72px;
}

.aof-gallery__group:last-child {
    margin-bottom: 0;
}

.aof-gallery__cat-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.aof-gallery__cat-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.aof-gallery__cat-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0e0e0;
    flex-shrink: 0;
}

.aof-gallery__cat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.aof-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 338px);
    gap: 10px;
    padding: 0 32px;
}

.aof-gallery__item {
    position: relative;
    overflow: hidden;
    background: #e0e0e0;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    border-radius: 10px;
}

.aof-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.aof-gallery__item:hover img {
    transform: scale(1.05);
}

.aof-gallery__item-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e00;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    pointer-events: none;
}

.gallery-grid-wrapper {
    display: flex;
    justify-content: center;
}

@media (max-width: 900px) {
    .aof-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .aof-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 16px;
    }
}

.aof-gallery-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
}

.aof-gallery-lb.is-open {
    display: flex;
}

.aof-gallery-lb__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.aof-gallery-lb__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
