/* ==========================================================
   BOX OFFICE
   ========================================================== */

.elba-box-office-div {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}


/* ==========================================================
   PAGE HEADER
   ========================================================== */

.box-office-header {
    margin-bottom: 1.5rem;
}

.box-office-header h1 {
    margin: 0;
    color: #25282d;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
}


/* ==========================================================
   EVENT FILTERS
   ========================================================== */

.box-office-isotope-filters {
    position: relative;
    top: auto;
    margin: 0 auto;
}

.box-office-isotope-filters .filters-button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.box-office-isotope-filters .btn-isotope {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    margin: 0;
    padding: 0.65rem 1rem;

    color: #0a2140 !important;
    background: #fff !important;
    border: 2px solid #0a2140 !important;
    border-radius: 0px !important;

    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;

    cursor: pointer;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.box-office-isotope-filters .btn-isotope:hover {
    color: #fff !important;
    background: #0a2140 !important;
    box-shadow: 0 4px 12px rgba(10, 33, 64, 0.18);
    transform: translateY(-1px);
}

.box-office-isotope-filters .btn-isotope.is-checked,
.box-office-isotope-filters .btn-isotope[aria-pressed="true"] {
    color: #fff !important;
    background: #0a2140 !important;
    border-color: #0a2140 !important;
}

.box-office-isotope-filters .btn-isotope:focus-visible {
    outline: 3px solid #fdb913;
    outline-offset: 3px;
    box-shadow: none !important;
}


/* ==========================================================
   SEASON PASSES
   ========================================================== */

.box-office-passes {
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 1.25rem;

    background: #f4f5f6;
    border-left: 5px solid #fdb913;
}

.box-office-passes h2 {
    margin: 0 0 0.85rem;
    color: #0a2140;
    font-size: 1.25rem;
}

.box-office-passes__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.box-office-passes__links .btn {
    color: #0a2140;
    background: #fff;
    border: 1px solid #0a2140;
    border-radius: 0;
    font-weight: 700;
}

.box-office-passes__links .btn:hover {
    color: #fff;
    background: #0a2140;
}


/* ==========================================================
   ISOTOPE GRID
   ========================================================== */

.box-office-grid {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/*
 * Isotope positions these items absolutely after initialization.
 * Width and exterior spacing need to be defined here rather than
 * through Bootstrap column classes.
 */

.box-office-grid .element-item {
    position: relative;

    width: calc(50% - 1rem);
    margin: 0 0.5rem 1.5rem;

    overflow: hidden;

    background: #fff;
    border: 1px solid #d9dde2;
    box-shadow: 0 4px 14px rgba(10, 33, 64, 0.09);

    transition:
        box-shadow 180ms ease,
        transform 180ms ease;
}

.box-office-grid .element-item:hover {
    z-index: 2;
    box-shadow: 0 9px 22px rgba(10, 33, 64, 0.16);
    transform: translateY(-3px);
}


/* ==========================================================
   CARD IMAGE
   ========================================================== */

.box-office-card__image-link {
    display: block;
    overflow: hidden;
    background: #0a2140;
}

.box-office-grid .box-office-img {
    display: block;

    width: 100%;
    max-width: none;
    height: auto;
    /*aspect-ratio: 500 / 349;*/
    aspect-ratio: 16 / 9;
    object-fit: cover;

    transition: transform 300ms ease;
}

.box-office-grid .element-item:hover .box-office-img {
    transform: scale(1.015);
}


/* ==========================================================
   CARD CONTENT
   ========================================================== */

.box-office-card__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem 1.25rem 1.25rem;
}

.box-office-card__title {
    margin: 0;
    color: #0a2140;
    font-size: 1.35rem;
    line-height: 1.2;
}

.box-office-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: auto;
}

.box-office-card__actions .btn-isotope-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0.6rem 1rem;

    color: #fff !important;
    background: #0a2140;
    border: 2px solid #0a2140;
    border-radius: 0 !important;

    font-weight: 700;
    text-decoration: none;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.box-office-card__actions .btn-isotope-secondary:hover {
    color: #0a2140 !important;
    background: #fff;
    border-color: #0a2140;
    transform: translateY(-1px);
}

.box-office-card__actions .btn-isotope-secondary:focus-visible {
    outline: 3px solid #fdb913;
    outline-offset: 3px;
    box-shadow: none !important;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media screen and (max-width: 900px) {
    .box-office-grid .element-item {
        width: calc(50% - 1rem);
    }
}

@media screen and (max-width: 700px) {
    .elba-box-office-div {
        padding-inline: 1rem;
    }

    .box-office-isotope-filters .filters-button-group {
        justify-content: flex-start;
    }

    .box-office-isotope-filters .btn-isotope {
        flex: 1 1 auto;
    }

    .box-office-grid .element-item {
        width: calc(100% - 1rem);
    }

    .box-office-passes__links {
        flex-direction: column;
    }

    .box-office-passes__links .btn {
        width: 100%;
        white-space: normal;
    }
}

@media screen and (max-width: 480px) {
    .box-office-isotope-filters .btn-isotope {
        width: 100%;
    }

    .box-office-card__actions {
        flex-direction: column;
    }

    .box-office-card__actions .btn-isotope-secondary {
        width: 100%;
    }
}