/* The block theme adds a generic title/date header to custom post types.
   The component renders the established page title in the exact legacy place. */
body.single-svstm_team main > .wp-block-group:first-child {
    display: none;
}

.svstm-team-overview .team-link,
.teampage-container .card-link {
    color: inherit;
    text-decoration: none;
}

.svstm-team-overview .team-tile-big,
.svstm-team-overview .team-tile-normal {
    position: relative;
}

.svstm-team-image-placeholder,
.svstm-player-image-placeholder {
    display: block;
    width: 100%;
    margin: 0;
    background: linear-gradient(135deg, var(--wp--preset--color--custom-color-4, #222), #111);
}

.svstm-team-image-placeholder {
    aspect-ratio: 16 / 9;
}

.svstm-team-image-placeholder span,
.svstm-player-image-placeholder span {
    display: block;
    width: 100%;
    height: 100%;
}

.svstm-player-image-placeholder {
    height: 100%;
}

.teampage-container .player-card[hidden] {
    display: none !important;
}

.teampage-container .player-card > .card-link {
    display: block;
    width: 100%;
    height: 100%;
}

.teampage-container .player-card.show-front-name .card-front .name-front {
    opacity: 1;
    margin: 0;
    padding: 12px 10px 16px;
    line-height: 1.1;
    text-align: center;
}

.teampage-container .card-back .infos .pair.role {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
}

.svstm-season-link-wrapper {
    text-align: center;
    margin: 0 0 2rem 0;
}

.svstm-season-link {
    display: inline-block;
    padding: 10px 20px;

    font-weight: 600;
    font-size: 16px;

    color: var(--wp--preset--color--custom-color-1);
    background-color: var(--wp--preset--color--custom-color-2);
    border: 1px solid var(--wp--preset--color--custom-color-1);
    border-radius: 3px;

    text-decoration: none;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.svstm-season-link:hover {
    color: var(--wp--preset--color--custom-color-2);
    background-color: var(--wp--preset--color--custom-color-1);
}

.teampage-container .team-photo {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.teampage-container .team-photo .svstm-team-photo-image {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

.svstm-table-scroll {
    width: 620px;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    overflow-x: auto;
}

.teampage-container .svstm-table-scroll table {
    width: 100%;
    border-collapse: collapse;
}

.teampage-container .svstm-table-scroll th,
.teampage-container .svstm-table-scroll td {
    padding: 0.5em;
    border: 1px solid currentColor;
}

.player-detailed .svstm-player-detail-layout {
    display: flex;
    flex-wrap: wrap;
}

.player-detailed .svstm-player-detail-image {
    flex: 0 0 auto;
}

.player-detailed .profile-img,
.player-detailed .profile-img img,
.player-detailed .profile-img span {
    display: block;
    width: 400px;
    height: 600px;
    margin: 0;
    object-fit: cover;
}

.player-detailed .table {
    flex: 1 1 320px;
}

.player-detailed .wp-block-social-link-label:not(.screen-reader-text) {
    padding: 0.35rem 0.55rem;
}

@media (max-width: 1500px) {
    .player-detailed .svstm-player-detail-layout {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .player-detailed .svstm-player-detail-image,
    .player-detailed .profile-img,
    .player-detailed .profile-img img,
    .player-detailed .profile-img span {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
    }
}
