/**
 * Страница «История».
 */

/* ==========================================================================
   Общая страница
   ========================================================================== */

.history-page {
    color: var(--color-content);
    background-color: #b5cbe6;
    font-family: var(--font-content);
}

.page-template-page-history .site-branding {
    transform: translateX(-220px);
}


/*
 * Корректировка логотипа страницы «История»
 * на мониторах и ноутбуках средней ширины.
 */
@media (max-width: 1599px) and (min-width: 1101px) {

    .page-template-page-history {
        --logo-size: 66px;
    }

    .page-template-page-history .site-branding {
        transform: translate(-7px, -6px);
    }

}

/*
 * Страница «История»
 * Планшеты и небольшие ноутбуки (1024 px)
 */
@media (max-width: 1100px) and (min-width: 783px) {

    .page-template-page-history {
        --logo-size: 46px;
    }

    .page-template-page-history .site-branding {
        transform: translate(28px, -1px);
    }

}


/* ==========================================================================
   Верхняя архивная фотография
   ========================================================================== */

.history-hero {
    width: 100%;
    background-color: #b5cbe6;
}

.history-hero__media {
    width: 100%;
    overflow: hidden;
}

.history-hero__image {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   Заголовок под фотографией
   ========================================================================== */

.history-hero__heading {
    padding: 48px 0 20px;
    text-align: center;
}

.history-hero__title {
    margin: 0;
    color: #2f5d96;
    font-family: var(--font-content);
    font-size: clamp(34px, 2.4vw, 42px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.history-hero__subtitle {
    margin: 10px 0 0;
    color: var(--color-content);
    font-family: var(--font-content);
    font-size: clamp(20px, 1.3vw, 24px);
    font-weight: 400;
    line-height: 1.4;
}

/* ==========================================================================
   Основное содержание
   ========================================================================== */

.history-content {
    padding: 0 0 40px;
}

.history-content__inner {
    width: 100%;
    max-width: 1300px;
    margin-inline: auto;
}

/* ==========================================================================
   Основной исторический текст
   ========================================================================== */

.history-text {
    color: var(--color-content);
    font-family: var(--font-content);
    font-size: clamp(20px, 1.3vw, 24px);
    font-weight: 400;
    line-height: 1.55;
}

.history-text p {
    margin: 0 0 26px;
    text-align: justify;
    text-indent: 30px;
}

.history-text p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   Первый состав ансамбля
   ========================================================================== */

.history-members {
    margin: 24px 0 20px;
    padding: 15px 20px;
    color: var(--color-content);
    background-color: rgba(255, 255, 255, 0.22);
    border-left: 4px solid #436797;
    font-family: var(--font-content);
    font-size: clamp(19px, 1.2vw, 22px);
    font-weight: 400;
    line-height: 1.55;
}

.history-members p {
    margin: 0 0 7px;
}

.history-members p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   Исторические фотографии
   ========================================================================== */

.history-figure {
    width: 100%;
    margin: 30px auto;
    text-align: center;
}

.history-figure__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}

.history-figure--first {
    max-width: 698px;
}

.history-figure--portrait {
    max-width: 620px;
}

.history-figure--portrait .history-figure__image {
    max-width: 390px;
}

.history-figure--wide {
    max-width: 790px;
}

.history-figure--medium {
    max-width: 542px;
}

.history-figure__caption {
    width: 100%;
    max-width: 620px;
    margin: 6px auto 0;
    color: var(--color-content);
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}


/* ==========================================================================
   Парная архивная галерея
   ========================================================================== */

.history-gallery {
    width: 100%;
    margin-inline: auto;
}


.history-gallery--archive-pair {
    display: grid;
    width: min(100%, 860px);
    margin: 30px auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 24px;
    align-items: start;
}

.history-gallery--mixed-pair {
    display: grid;
    width: min(100%, 860px);
    margin: 30px auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 24px;
    align-items: start;
}



.history-gallery--mixed-pair .history-gallery__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-gallery__item {
    display: flex;
    min-width: 0;
    margin: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.history-gallery__image-wrap {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
}

.history-gallery__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0;
}

.history-gallery__caption {
    width: 100%;
    max-width: 340px;
    margin: 6px auto 0;
    color: var(--color-content);
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
}




/* ==========================================================================
   Адаптивность содержимого страницы
   ========================================================================== */

@media (max-width: 767px) {

    .history-content {
        padding-top: 4px;
        padding-bottom: 52px;
    }

    .history-text {
        font-size: 18px;
        line-height: 1.55;
    }

    .history-text p {
        margin-bottom: 22px;
        text-align: left;
        text-indent: 24px;
    }

    .history-members {
        margin: 28px 0 34px;
        padding: 22px 20px;
        font-size: 18px;
        line-height: 1.5;
    }

    .history-figure {
        margin-top: 34px;
        margin-bottom: 34px;
    }

    .history-figure__caption {
        max-width: 520px;
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.4;
    }
	
	
.history-gallery--archive-pair {
        width: min(100%, 560px);
        margin-top: 34px;
        margin-bottom: 40px;
        grid-template-columns: 1fr;
        gap: 36px;
    }
	
	.history-gallery--mixed-pair {
        width: min(100%, 560px);
        margin-top: 34px;
        margin-bottom: 40px;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .history-gallery__caption {
        max-width: 500px;
        margin-top: 13px;
        font-size: 15px;
        line-height: 1.42;
    }



}


@media (max-width: 479px) {

    .history-text {
        font-size: 17px;
    }

    .history-text p {
        text-indent: 20px;
    }

    .history-members {
        padding: 19px 16px;
        font-size: 17px;
    }
	
	/*
 * Портретная фотография history01.jpg:
 * на узких экранах не должна превышать ширину контента.
 */
.history-figure--portrait {
    max-width: 100%;
}

.history-figure--portrait .history-figure__image {
    width: min(100%, 390px);
    max-width: 100%;
    height: auto;
}

    .history-figure__caption {
		margin-top: 5px;
	}
	
	.history-gallery__caption {
		margin-top: 5px;
	}
	
    .history-figure {
		margin-top: 20px;
		margin-bottom: 25px;
	}
	
	.history-gallery--archive-pair {
	margin-top: 20px;	
	margin-bottom: 25px;
	}
	
	.history-gallery--mixed-pair {
	margin-top: 20px;	
	margin-bottom: 25px;
	}


    .history-figure__caption br {
        display: none;
    }
	
	.history-figure__caption {
        font-size: 14px;
        line-height: 1.4;
    }

    .history-gallery__caption br {
        display: none;
    }

    .history-gallery--archive-pair,
    .history-gallery--mixed-pair {
        gap: 30px;
    }

    .history-gallery__caption {
        font-size: 14px;
        line-height: 1.4;
    }
	


}


/*
|--------------------------------------------------------------------------
| Страница «История»
| Планшеты (768×1024)
|--------------------------------------------------------------------------
*/
@media (max-width: 782px) {

    .page-template-page-history {
        --logo-size: 58px;
    }

    .page-template-page-history .site-branding {
        transform: translate(5px, 0);
    }

}


@media (max-width: 479px) {

    .page-template-page-history {
        --logo-size: 52px;
    }

    .page-template-page-history .site-branding {
        transform: translate(2px, 2px);
    }

}


@media (max-width: 320px) {
	
	    .page-template-page-history {
        --logo-size: 46px;
    }

    .page-template-page-history .site-branding {
        transform: translate(-2px, 2px);
    }

}