/* О нас */
#about {
    background-color: #f9f9f9;
    padding: 3rem 0;
    text-align: center;
}

#about .container {
    max-width: 800px;
}

#about h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1E3F1B;
    margin-bottom: 2rem;
    text-align: center;
}

#about p {
    font-family: var(--font-base);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 1.5rem;
    text-align: left;
}

#about p:first-of-type {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
}

#images {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

#images h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

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



.gallery-about-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.28s ease;
}

.gallery-about-item img:hover {
    transform: scale(1.05);
}

/* Ссылка в галерее для GLightbox */
.gallery-about-item a {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.gallery-about-item a:focus img {
    outline: 3px solid rgba(30,63,27,0.3);
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .gallery-about {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    #about h2 {
        font-size: 2rem;
    }
    
    #about p {
        font-size: 1rem;
    }
    
    #about p:first-of-type {
        font-size: 1.1rem;
    }
}
/* Планшеты средние: 768px-1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    #about .container {
        max-width: 700px;
    }
    
    .gallery-about {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    #about h2, #images h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    #about p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
    
    #about p:first-of-type {
        font-size: 1.05rem;
    }
}

/* Планшеты малые: 621px-767px */
@media (min-width: 621px) and (max-width: 767px) {
    #about .container {
        max-width: 95%;
    }
    
    .gallery-about {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 1rem;
    }
    
    #about h2, #images h2 {
        font-size: 1.6rem;
        margin-bottom: 1.3rem;
    }
    
    #about p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    #about p:first-of-type {
        font-size: 0.95rem;
    }
    
    .gallery-about-item img:hover {
        transform: scale(1.03);
    }
}

/* Большие телефоны: 481px-620px */
@media (min-width: 481px) and (max-width: 620px) {
    #about .container {
        max-width: 95%;
    }
    
    .gallery-about {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    #about h2, #images h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    #about p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    #about p:first-of-type {
        font-size: 0.9rem;
    }
    
    .gallery-about-item img {
        height: auto;
        min-height: 150px;
    }
    
    .gallery-about-item img:hover {
        transform: scale(1.02);
    }
}

/* Мобильные устройства: 320px-480px */
@media (max-width: 480px) {
    #about {
        padding: 1.5rem 0;
    }
    
    #about .container {
        max-width: 100%;
    }
    
    #about h2, #images h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    #about p {
        font-size: 0.8rem;
        margin-bottom: 0.7rem;
        line-height: 1.5;
    }
    
    #about p:first-of-type {
        font-size: 0.85rem;
        margin-bottom: 0.7rem;
    }
    
    #images {
        padding: 1.5rem 0;
    }
    
    .gallery-about {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .gallery-about-item {
        position: relative;
        overflow: hidden;
        border-radius: var(--radius);
    }
    
    .gallery-about-item img {
        width: 100%;
        aspect-ratio: auto;
        height: auto;
        min-height: 200px;
        max-height: 300px;
        display: block;
    }
    
    .gallery-about-item img:active,
    .gallery-about-item img:hover {
        transform: scale(1.02);
    }
    
    .gallery-about-item a:focus img {
        outline: 2px solid rgba(30,63,27,0.4);
        outline-offset: 0;
    }
}