/*
 * Page: Le theatre
 *
 * Migrated from page-le-theatre.php. Keep this file page-scoped until
 * shared rules are promoted to design-system.css.
 */

.alf-theatre-page {
    padding: 48px 0 150px;
    overflow: hidden;
}

.alf-theatre-wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.alf-theatre-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 500px;
    column-gap: 56px;
    row-gap: 24px;
    align-items: start;
    margin-bottom: 124px;
    min-width: 0;
}

.alf-theatre-grid--history {
    display: grid;
    grid-template-columns: 500px minmax(0, 1fr);
    column-gap: 56px;
    row-gap: 24px;
    align-items: start;
    margin-bottom: 124px;
    min-width: 0;
}

.alf-theatre-title {
    display: inline-block;
    margin: 0 0 28px;
    padding: 13px 27px 15px;
    font-size: 58px;
    transform: rotate(-1deg);
    width: fit-content;
    max-width: 100%;
}

.alf-theatre-copy {
    font-size: 16px;
    line-height: 1.42;
    font-weight: 500;
    max-width: 745px;
}

.alf-theatre-grid > .alf-theatre-title {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
}

.alf-theatre-grid > .alf-theatre-copy {
    grid-column: 1;
    grid-row: 2;
}

.alf-theatre-grid > .alf-theatre-media {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
}

.alf-theatre-grid--history > .alf-theatre-visual {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
}

.alf-theatre-grid--history > .alf-theatre-title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
}

.alf-theatre-grid--history > .alf-theatre-copy {
    grid-column: 2;
    grid-row: 2;
}

.alf-theatre-copy p {
    margin: 0 0 15px;
}

.alf-theatre-carousel {
    position: relative;
    display: block;
    overflow: hidden;
}

.alf-theatre-carousel .alf-theatre-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alf-theatre-carousel.is-carousel .alf-theatre-photo {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.15s ease-in-out;
}

.alf-theatre-carousel.is-carousel .alf-theatre-photo.is-active {
    opacity: 1;
}

.alf-theatre-photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 100%;
}

.alf-theatre-photo--sofa,
.alf-theatre-photo--courtyard {
    width: 500px;
    max-width: 100%;
    aspect-ratio: 3.5 / 4;
    justify-self: start;
}

.alf-theatre-photo--courtyard {
    position: relative;
    z-index: 2;
}

.alf-theatre-media,
.alf-theatre-visual {
    width: 100%;
}

.alf-theatre-visual {
    position: relative;
    display: grid;
    justify-items: start;
}

.alf-theatre-visual::before {
    content: "";
    position: absolute;
    width: clamp(220px, 24vw, 340px);
    height: clamp(220px, 24vw, 340px);
    left: -175px;
    top: -60px;
    background: url("/wp-content/uploads/2025/08/roue2.png") center / contain no-repeat;
    opacity: .95;
}

.alf-theatre-page::before {
    content: "";
    position: absolute;
    right: -130px;
    top: 780px;
    width: clamp(180px, 18vw, 250px);
    height: clamp(180px, 18vw, 250px);
    background-image: url("/wp-content/uploads/2025/08/roue.svg");
    opacity: .95;
}

.alf-theatre-visual::after {
    content: none;
}

.alf-theatre-history .alf-theatre-title {
    font-size: 56px;
    margin-left: -12px;
}

.alf-partners {
    padding-top: 2px;
    text-align: center;
}

.alf-partners .alf-theatre-title {
    font-size: 55px;
    transform: rotate(1deg);
    margin-bottom: 54px;
}

.alf-partner-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 52px 30px;
    width: min(1240px, 100%);
    margin: 0 auto;
}

.alf-partner-logo {
    min-height: 118px;
    display: grid;
    place-items: center;
    flex: 0 1 190px;
}

.alf-partner-logo a {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.alf-partner-logo img {
    max-width: 190px;
    max-height: 125px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.alf-partner-logo--wide {
    flex-basis: 235px;
}

.alf-partner-logo--wide img {
    max-width: 235px;
}

@media (max-width: 900px) {
    .alf-theatre-page {
        padding: 25px 0 90px;
    }

    .alf-theatre-wrap {
        width: min(100% - 32px, 680px);
    }

    .alf-theatre-grid,
    .alf-theatre-grid--history {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
        margin-bottom: 72px;
        align-items: flex-start;
    }

    .alf-theatre-grid > .alf-theatre-title,
    .alf-theatre-grid > .alf-theatre-copy,
    .alf-theatre-grid > .alf-theatre-media,
    .alf-theatre-grid--history > .alf-theatre-title,
    .alf-theatre-grid--history > .alf-theatre-copy,
    .alf-theatre-grid--history > .alf-theatre-visual {
        grid-column: auto;
        grid-row: auto;
        align-self: auto;
    }

    .alf-theatre-title,
    .alf-theatre-history .alf-theatre-title,
    .alf-partners .alf-theatre-title {
        font-size: 40px;
        padding: 11px 18px;
    }

    .alf-theatre-copy {
        font-size: 16px;
    }

    .alf-theatre-photo--sofa,
    .alf-theatre-photo--courtyard {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 4 / 3;
    }

    .alf-theatre-visual::before {
        width: 160px;
        height: 160px;
        left: -80px;
        top: -42px;
    }

    .alf-partner-row {
        gap: 28px 34px;
        width: 100%;
    }

    .alf-partner-logo {
        flex: 0 1 150px;
        min-height: 100px;
    }

    .alf-partner-logo img {
        max-width: 150px;
        max-height: 105px;
    }
}

@media (max-width: 640px) {
    .alf-theatre-title {
        font-size: 34px;
    }
}
