/**
 * Общая страница «Фото с выступлений».
 */


/* ==========================================================================
   Общая страница
   ========================================================================== */

.performances-archive-page {
    color: var(--color-content);
    background-color: #b5cbe6;
    font-family: var(--font-content);
}


/* ==========================================================================
   Логотип
   ========================================================================== */

/*
 * Положение логотипа повторяет страницы
 * «История» и «Тексты песен».
 */

.page-template-page-photos
.site-branding {
    transform: translateX(-220px);
}


/* Мониторы и ноутбуки средней ширины */

@media (max-width: 1599px) and (min-width: 1101px) {

    .page-template-page-photos {
        --logo-size: 66px;
    }

    .page-template-page-photos
    .site-branding {
        transform: translate(-7px, -6px);
    }

}


/* Планшеты и небольшие ноутбуки */

@media (max-width: 1100px) and (min-width: 783px) {

    .page-template-page-photos {
        --logo-size: 46px;
    }

    .page-template-page-photos
    .site-branding {
        transform: translate(28px, -1px);
    }

}


/* ==========================================================================
   Hero
   ========================================================================== */

.performances-archive-hero {
    width: 100%;
    background-color: #b5cbe6;
}

.performances-archive-hero__media {
    width: 100%;
    overflow: hidden;
}

.performances-archive-hero__image {
    display: block;
    width: 100%;
    height: auto;
}

.performances-archive-hero__heading {
    width: 100%;
    padding: 40px 0 15px;
    background-color: #b5cbe6;
}

.performances-archive-hero__title {
    margin: 0;
    color: #2f5d96;
    font-family: var(--font-content);
    font-size: clamp(27px, 2vw, 36px);
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
}


/* ==========================================================================
   Основное содержимое
   ========================================================================== */

.performances-archive {
    width: 100%;
    padding: 1px 0 44px;
}

.performances-archive__inner {
    width: 100%;
    max-width: 1300px;
    margin-inline: auto;
}


/* ==========================================================================
   Группировка выступлений по годам
   ========================================================================== */

.performances-years {
    display: grid;
    width: 100%;
    gap: 38px;
}

.performances-year {
    width: 100%;
}

.performances-year__header {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 18px;
    margin-bottom: 17px;
}

.performances-year__title {
    flex: 0 0 auto;
    margin: 0;
    color: #2f5d96;
    font-family: var(--font-content);
    font-size: clamp(26px, 1.8vw, 32px);
    font-weight: 500;
    line-height: 1.2;
}

.performances-year__line {
    display: block;
    width: 100%;
    height: 1px;
    background-color: rgba(47, 93, 150, 0.32);
}

.performances-year__list {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px 20px;
}


/* ==========================================================================
   Карточка выступления
   ========================================================================== */

.performances-archive__item {
    min-width: 0;
    margin: 0;
}

.performances-archive__link {
    display: flex;
    height: 100%;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    color: inherit;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(47, 93, 150, 0.2);
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(31, 67, 110, 0.08);
    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.performances-archive__link:hover,
.performances-archive__link:focus-visible {
    background-color: rgba(255, 255, 255, 0.28);
    border-color: rgba(47, 93, 150, 0.42);
    box-shadow: 0 12px 26px rgba(31, 67, 110, 0.16);
    transform: translateY(-4px);
}

.performances-archive__link:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 3px;
}


/* ==========================================================================
   Фотография карточки
   ========================================================================== */

.performances-archive__media {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: rgba(47, 93, 150, 0.1);
}

.performances-archive__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 350ms ease;
}

.performances-archive__link:hover
.performances-archive__image,

.performances-archive__link:focus-visible
.performances-archive__image {
    transform: scale(1.035);
}


/* ==========================================================================
   Заглушка карточки
   ========================================================================== */

.performances-archive__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    color: #4d6993;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.18),
            rgba(47, 93, 150, 0.08)
        );
    text-align: center;
}

.performances-archive__placeholder-icon {
    position: relative;
    display: block;
    width: 48px;
    height: 38px;
    border: 2px solid currentColor;
    border-radius: 3px;
    opacity: 0.7;
}

.performances-archive__placeholder-icon::before {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 7px;
    height: 7px;
    content: "";
    border: 2px solid currentColor;
    border-radius: 50%;
}

.performances-archive__placeholder-icon::after {
    position: absolute;
    right: 5px;
    bottom: 5px;
    left: 5px;
    height: 18px;
    content: "";
    background:
        linear-gradient(
            135deg,
            transparent 44%,
            currentColor 45%,
            currentColor 54%,
            transparent 55%
        );
    opacity: 0.75;
}

.performances-archive__placeholder-text {
    font-family: var(--font-content);
    font-size: 15px;
    line-height: 1.3;
}


/* ==========================================================================
   Текст карточки
   ========================================================================== */

.performances-archive__item-content {
    display: flex;
    min-height: 150px;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 10px 20px 20px;
}

.performances-archive__city {
    margin: 0;
    color: #2f5d96;
    font-family: var(--font-content);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.performances-archive__venue {
    margin: 5px 0 0;
    color: var(--color-content);
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
}

.performances-archive__date {
    margin: auto 0 0;
    padding-top: 15px;
    color: #4d6993;
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.performances-archive__empty {
    margin: 0;
    color: #4d6993;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
}


@media (prefers-reduced-motion: reduce) {

    .performances-archive__link,
    .performances-archive__image {
        transition: none;
    }

    .performances-archive__link:hover,
    .performances-archive__link:focus-visible,
    .performances-archive__link:hover
    .performances-archive__image,
    .performances-archive__link:focus-visible
    .performances-archive__image {
        transform: none;
    }

}



/* ==========================================================================
   Небольшие ноутбуки
   ========================================================================== */

@media (max-width: 1100px) and (min-width: 783px) {

    .performances-year__list {
        grid-template-columns: repeat(3, minmax(0,1fr));
        gap: 22px 18px;
    }

    .performances-archive__item-content {
        min-height: 145px;
    }

}



/* ==========================================================================
   Планшеты
   ========================================================================== */

@media (max-width: 782px) {

    .page-template-page-photos {
        --logo-size: 58px;
    }

    .page-template-page-photos
    .site-branding {
        transform: translate(5px, 0);
    }

    .performances-archive-hero__heading {
        padding: 22px 0 24px;
    }

    .performances-archive-hero__title {
        font-size: 28px;
    }

    .performances-archive {
        padding-bottom: 38px;
    }
	
	.performances-years {
    gap: 32px;
}

.performances-year__header {
    gap: 14px;
    margin-bottom: 15px;
}

.performances-year__title {
    font-size: 27px;
}

.performances-year__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
}

.performances-archive__item-content {
    min-height: 140px;
    padding: 17px 18px 18px;
}

.performances-archive__city {
    font-size: 20px;
}

.performances-archive__venue {
    font-size: 16px;
}

.performances-archive__date {
    padding-top: 13px;
    font-size: 15px;
}

.performances-archive__empty {
    font-size: 17px;
}

}


/* ==========================================================================
   Телефоны
   ========================================================================== */

@media (max-width: 479px) {

    .page-template-page-photos {
        --logo-size: 52px;
    }

    .page-template-page-photos
    .site-branding {
        transform: translate(2px, 2px);
    }

    .performances-archive-hero__heading {
        padding: 18px 0 20px;
    }

    .performances-archive-hero__title {
        font-size: 24px;
    }

    .performances-archive {
        padding: 6px 0 30px;
    }

.performances-years {
    gap: 27px;
}

.performances-year__header {
    gap: 11px;
    margin-bottom: 12px;
}

.performances-year__title {
    font-size: 24px;
}

.performances-year__list {
    grid-template-columns: 1fr;
    gap: 16px;
}

.performances-archive__item-content {
    min-height: 0;
    padding: 7px 16px 17px;
}

.performances-archive__city {
    font-size: 20px;
}

.performances-archive__venue {
    margin-top: 1px;
    font-size: 16px;
}

.performances-archive__date {
    margin-top: 12px;
    padding-top: 0;
    font-size: 15px;
}

.performances-archive__empty {
    font-size: 16px;
}

.performances-archive__link:hover,
.performances-archive__link:focus-visible {
    transform: translateY(-2px);
}

}


@media (max-width: 320px) {

    .page-template-page-photos {
        --logo-size: 46px;
    }

    .page-template-page-photos
    .site-branding {
        transform: translate(-2px, 2px);
    }

    .performances-archive-hero__title {
        font-size: 22px;
    }

}