.staff-prev,
.staff-next {
    z-index: 1000;
    top: 180px;
}

.staff__item__photo__override img {
    transition: opacity 0.6s;
    opacity: 1;
}
.staff__item__photo__override img.fade-out {
    opacity: 0;
}
.staff__item__photo__override img.fade-in {
    opacity: 1;
}


.staff__item__photo__override {
    max-width: 500px;
    max-height: 500px;
    margin: 0 auto 10px auto;
    overflow: hidden;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff__item__name__override {
    text-align: left;
    width: 100%;
    margin: 8px 0 0 0;
    padding-left: 0;
}


.staff__item__override {
}

.staff__item__photo__override img.full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff__band.staff-one {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.staff__item_active_1,
.staff__item_active_2 {
    /* ваши стили для карточки, например: */
    margin: 0 8px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(375px, 1fr));
    gap: 40px 32px;
    max-width: 1200px;
    margin: auto;
    justify-items: center;
    align-items: center;
}

.team-grid__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.team-grid__photo {
    width: min(28vw, 375px);
    height: min(37vw, 500px);
    overflow: hidden;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.team-grid__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: top;
}

.team-grid__name {
    text-align: left;
    margin: 0;
    padding-left: 2px;
}

/* 2 фото в ряд на средних */
@media (max-width: 1099px) {
    .team-grid__filler--desktop { display: block; }
    .team-grid__filler--tablet { display: none; }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        gap: 32px 18px;
    }
    .team-grid__photo {
        width: 200px;
        height: 240px;
    }
    .team-grid__item {
        max-width: 200px;
    }
}

/* 1 фото в ряд на мобильных */
@media (max-width: 700px) {
    .team-grid__filler--desktop { display: block; }
    .team-grid__filler--tablet { display: none; }
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        gap: 20px 0;
    }
    .team-grid__photo {
        height: 300px;
    }
    .team-grid__item {
        width: 400px;
        margin-right: auto;
    }
}

.team-grid__filler {
    visibility: hidden;
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
}

.staff__band__title_modified {
    text-align: right;
}


/* диджеи */
.radio__pleer {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.audio-player {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: transparent;
}

.custom-audio {
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
    border: none;
    padding: 0;
}

/* Стилизация панели управления для WebKit-браузеров */
.custom-audio::-webkit-media-controls-panel {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
}

/* Стилизация обёртки панели */
.custom-audio::-webkit-media-controls-enclosure {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* Увеличение размера кнопок управления */
.custom-audio::-webkit-media-controls-play-button,
.custom-audio::-webkit-media-controls-pause-button {
    transform: scale(1.3);
    margin: 0 6px;
}

/* Увеличение высоты таймлайна */
.custom-audio::-webkit-media-controls-timeline {
}

/* Для Firefox */
.custom-audio::-moz-range-thumb,
.custom-audio::-moz-range-track {
    height: 12px;
    border-radius: 0;
}

.galery-hidden {
    max-height: 0 !important;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s;
    pointer-events: none;
}

.galery-shown {
    max-height: 1000px !important;
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s;
    pointer-events: auto;
}