/* Стилі для компонентів контенту сторінок */

/* Галерея зображень */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(calc((100% / 6) - 0px), 1fr)
    );
    grid-gap: 0px 0px;
    box-sizing: border-box;
    margin: 40px 0;
}

@media screen and (max-width: 1200px) {
    .about-gallery {
        grid-template-columns: repeat(
            auto-fill,
            minmax(calc(100% / 3 - 0px), 1fr)
        );
    }
}

@media screen and (max-width: 980px) {
    .about-gallery {
        grid-template-columns: repeat(
            auto-fill,
            minmax(calc(100% / 3 - 0px), 1fr)
        );
    }
}

@media screen and (max-width: 700px) {
    .about-gallery {
        grid-template-columns: repeat(
            auto-fill,
            minmax(calc(100% / 2 - 0px), 1fr)
        );
    }
}

.about-gallery img {
    max-width: 100%;
    display: block;
}

@media only screen and (max-width: 1200px) {
    .about-gallery {
        margin: 30px 0;
    }
}

.about-gallery__item {
    height: 226px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-gallery__item img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
}

@media only screen and (max-width: 1400px) {
    .about-gallery__item {
        height: 200px;
    }
}

@media only screen and (max-width: 1200px) {
    .about-gallery__item {
        height: 233px;
    }
}

@media only screen and (max-width: 720px) {
    .about-gallery__item {
        height: 167px;
    }
}

/* Стилі для YouTube відео */
.about-content iframe {
    width: 100%;
    height: 400px;
    margin: 20px 0;
    border: none;
}

@media screen and (max-width: 1200px) {
    .about-content iframe {
        height: 300px;
    }
}

@media screen and (max-width: 700px) {
    .about-content iframe {
        height: 190px;
    }
}

/* Стилі для HTML фрагментів */
.about-content h3 {
    text-align: center;
    color: #e55725;
    text-transform: uppercase;
    font-size: 25px;
    line-height: 30px;
    font-weight: bold;
    margin: 40px 0 20px;
}

.about-content p {
    font-size: 20px;
    line-height: 1.6;
    margin: 15px 0;
    color: #333;
}

.about-content *:last-child {
    margin-bottom: 0;
}

@media only screen and (max-width: 1200px) {
    .about-content h3 {
        font-size: 22px;
        margin: 30px 0 15px;
    }

    .about-content p {
        font-size: 18px;
        margin: 15px 0;
    }
}

@media only screen and (max-width: 720px) {
    .about-content h3 {
        margin: 25px 0 15px;
    }

    .about-content p {
        font-size: 16px;
    }
}

/* Відступи між блоками контенту (фрагменти, відео, галерея) */
.about-content .content-block {
    margin-top: 40px;
    margin-bottom: 40px;
}

@media only screen and (max-width: 1200px) {
    .about-content .content-block {
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

@media only screen and (max-width: 720px) {
    .about-content .content-block {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}
