/* ==================================================================
   AFDA Student Work — Dark theme (mockup rebuild)
   Brand: Orange #FF8201 | Dark Grey #111111
   Fonts: Sofia Pro (body/nav), Filson Pro (headings), Mulish (buttons)
   ================================================================== */

.student-work-section.sw-dark,
.sw-film-page.sw-dark {
    background-color: #111111 !important;
    color: #ffffff;
}

.student-work-section.sw-dark {
    overflow-x: hidden;
}

.sw-container {
    /* max-width: 1600px; */
    margin: 0 auto;
    padding: 0 7vw;
}

/* Full-width black band behind the Graduation & Experimental festivals */
.sw-festival-band {
    background-color: #000000;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 3vw calc(50vw - 50%);
}

.student-work-section.sw-dark a,
.sw-film-page.sw-dark a {
    color: #ffffff;
}

.sw-dark .student-work-title {
    font-family: "filson-pro", sans-serif;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.sw-dark .sw-sub-title {
    font-size: 22pt;
}

/* ---- Search bar ---- */
.sw-search-wrap {
    /* the search bar stacks its fields when it can't fit them side by side */
    container-type: inline-size;
}

.sw-search {
    background-color: #000000;
    border: 1px solid #FF8201;
    border-radius: 6px;
    /* padding: clamp(3px, 0.35vw, 6px); */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.sw-search .student-work-search-input {
    flex: 1 1 220px;
    background-color: transparent !important;
    border: 0 !important;
    color: #ffffff !important;
    border-radius: 4px;
    /* padding: clamp(4px, 0.4vw, 7px) clamp(8px, 1vw, 16px); */
    font-family: "sofia-pro", sans-serif;
    font-size: clamp(13px, 0.95vw, 16px);
}

.sw-search .student-work-select {
    flex: 0 1 auto;
    min-width: 120px;
    background-color: transparent !important;
    border: 0 !important;
    border-left: 1px solid #FF8201 !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    /* padding: clamp(4px, 0.4vw, 7px) clamp(8px, 1vw, 16px); */
    font-family: "sofia-pro", sans-serif;
    font-size: clamp(13px, 0.95vw, 16px);
}

.sw-search .student-work-search-btn {
    background-color: #FF8201;
    border: 0;
    border-radius: 4px;
    color: #000000 !important;
    /* padding: clamp(5px, 0.5vw, 8px) clamp(10px, 1.2vw, 18px); */
    font-family: "Mulish", sans-serif;
    font-weight: 700;
    cursor: pointer;
    margin-left: 6px;
    transition: background-color 0.2s ease;
}

.sw-search .student-work-search-btn:hover {
    background-color: #e67400;
}

/* When the search bar is too narrow to fit all fields in a row,
   stack them one below the other (like on small screens). */
@container (max-width: 560px) {
    .sw-search {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }
    .sw-search .student-work-search-input {
        flex: 1 1 auto;
        width: 100%;
        border: 1px solid #FF8201 !important;
        border-radius: 4px !important;
        padding: 12px 14px;
        font-size: 16px; /* >=16px prevents iOS zoom on focus */
    }
    .sw-search .student-work-select {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        border: 1px solid #FF8201 !important;
        border-left: 1px solid #FF8201 !important;
        border-radius: 4px !important;
        padding: 12px 14px;
        font-size: 16px;
        background-color: #111111 !important;
    }
    .sw-search .student-work-search-btn {
        width: 100%;
        margin-left: 0;
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 4px;
    }
}

/* ---- Section filter tabs (results page) ---- */
.sw-tabs-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.sw-filter-tab {
    font-family: "sofia-pro", sans-serif;
    font-weight: 600;
    font-size: clamp(12px, 0.95vw, 15px);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FF8201 !important;
    background-color: #161616;
    border: 1px solid #FF8201;
    border-radius: 5px;
    padding: 8px 20px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.sw-filter-tab:hover {
    background-color: #FF8201;
    color: #000000 !important;
}

.sw-filter-tab.active {
    background-color: #FF8201;
    color: #000000 !important;
    border-color: #FF8201;
}

/* ---- Filter tabs ---- */
.sw-tabs .filter-link {
    font-family: "sofia-pro", sans-serif;
    font-weight: 600;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    padding: 8px 16px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sw-tabs .filter-link:hover {
    color: #ffffff;
}

.sw-tabs .filter-link.active {
    color: #FF8201;
    border-bottom-color: #FF8201;
}

/* ---- Carousel ---- */
.sw-carousel-block {
    margin-top: 20px;
}

.sw-carousel-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 80px;
}
.sw-carousel-head-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sw-carousel-title {
    font-family: "filson-pro", sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2.2vw, 32px);
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.sw-carousel-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background-color: #FF8201;
}

.sw-carousel-sub {
    font-family: "sofia-pro", sans-serif;
    font-size: clamp(13px, 1.05vw, 16px);
    color: #bbbbbb;
    margin: 12px 0 10px 0;
    width: 100%;
    max-width: none;
}

.sw-carousel-wrap {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.sw-carousel-wrap .sw-prev {
    left: 44px;
}

.sw-carousel-wrap .sw-next {
    right: 44px;
}

.sw-carousel-wrap .sw-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 6;
}

.sw-arrow {
    width: clamp(30px, 2.2vw, 40px);
    height: clamp(30px, 2.2vw, 40px);
    border-radius: 50%;
    background-color: rgba(0,0,0,0.6);
    border: 2px solid #FF8201;
    color: #FF8201;
    font-size: clamp(14px, 1.1vw, 18px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sw-arrow:hover {
    background-color: #FF8201;
    color: #ffffff;
}

.sw-carousel-track {
    display: flex;
    gap: clamp(14px, 1.6vw, 28px);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0 12px 7vw;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    /* hide the horizontal scrollbar - navigate via drag or the arrows */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sw-carousel-track.is-dragging {
    cursor: grabbing;
    user-select: none;
    scroll-behavior: auto;
}

.sw-carousel-track::-webkit-scrollbar {
    height: 0;
    display: none;
}

.sw-carousel-track::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 3px;
}

.sw-carousel-track::-webkit-scrollbar-track {
    background: transparent;
}

.sw-card {
    flex: 0 0 clamp(170px, 18vw, 320px);
    max-width: clamp(170px, 18vw, 320px);
}

.sw-card-link {
    display: block;
    text-decoration: none !important;
}

.sw-card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    overflow: hidden;
    background-color: #2a2a2a;
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

.sw-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sw-card:hover .sw-card-media img {
    transform: scale(1.04);
    opacity: 0.85;
}

.sw-card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,130,1,0.25);
    color: #ffffff;
    font-size: 28px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sw-card:hover .sw-card-hover {
    opacity: 1;
}

/* Top 10 number sits right next to the poster, as tall as the poster, touching its left edge */
.sw-card-numbered {
    display: flex;
    align-items: stretch;
}

.sw-card-numbered .sw-card-num {
    position: relative;
    flex: 0 0 48%;
    min-width: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
}

.sw-card-numbered .sw-card-num img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    max-width: none;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.6));
}

.sw-card-numbered .sw-card-link {
    flex: 1 1 0%;
    min-width: 46%;
    position: relative;
    z-index: 1;
}

/* narrow digit (1) is anchored to the poster's left edge so it touches */
.sw-card-numbered .sw-num-1 img {
    left: auto;
    right: 0;
}

.sw-card-title {
    font-family: "filson-pro", sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 1.1vw, 18px);
    color: #ffffff;
    margin: 12px 0 2px;
    line-height: 1.2;
}

.sw-card-meta {
    font-family: "sofia-pro", sans-serif;
    font-size: clamp(12px, 0.9vw, 14px);
    color: #FF8201;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* "View All" card at the end of the festival carousels (no background - just the button) */
.sw-card-more {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-card-more-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.sw-card-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 30px;
    border: 2px solid #FF8201;
    background-color: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    font-family: "sofia-pro", sans-serif;
    font-weight: 600;
    font-size: clamp(13px, 1vw, 16px);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sw-card-more-link:hover .sw-card-more-btn {
    background-color: #FF8201;
    color: #ffffff;
}

/* ---- Grid cards (results page) ---- */
.sw-grid-col {
    margin-bottom:  2vw;
    padding-right: 0;
}

/* 5 cards per row on large screens */
@media (min-width: 992px) {
    .sw-grid-col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.sw-grid-card-link {
    display: block;
    height: 100%;
}

.sw-grid-card-link:hover {
    text-decoration: none;
}

.sw-grid-card {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
    background-color: #1c1c1c;
    height: 100%;
}

.sw-grid-card .sw-card-media {
    position: relative;
    width: 100%;
    height: 100%;
}

.sw-grid-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.sw-grid-card:hover .sw-card-img {
    transform: scale(1.06);
}

.sw-grid-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 16px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    transition: opacity 0.3s ease;
}

/* on hover, hide the caption so the picture takes focus */
.sw-grid-card:hover .sw-grid-caption {
    opacity: 0;
}

/* play button on hover for the results grid cards (like the home carousel) */
.sw-grid-card .sw-card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 130, 1, 0.25);
    color: #ffffff;
    font-size: 34px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.sw-grid-card:hover .sw-card-hover {
    opacity: 1;
}

.sw-grid-caption-title {
    font-family: "filson-pro", sans-serif;
    font-weight: 600;
    font-size: clamp(15px, 1.1vw, 18px);
    color: #ffffff;
    margin: 0 0 3px;
    line-height: 1.2;
}

.sw-grid-caption-meta {
    font-family: "sofia-pro", sans-serif;
    font-size: clamp(11px, 0.8vw, 13px);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* ---- Empty state (no results) ---- */
.sw-empty-state {
    text-align: center;
    padding: 70px 24px;
    background-color: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    margin: 10px 0 20px;
}

.sw-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: rgba(255, 130, 1, 0.12);
    border: 2px solid #FF8201;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF8201;
    font-size: 30px;
}

.sw-empty-title {
    font-family: "filson-pro", sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2.4vw, 28px);
    color: #ffffff;
    margin: 0 0 10px;
}

.sw-empty-text {
    font-family: "sofia-pro", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #bbbbbb;
    max-width: 460px;
    margin: 0 auto 24px;
}

.sw-empty-btn {
    display: inline-block;
    padding: 10px 34px !important;
}

/* ---- Buttons ---- */
.btn-sw {
    font-family: "Mulish", sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #FF8201 !important;
    border: 0 !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    transition: background-color 0.2s ease !important;
}

.btn-sw:hover {
    background-color: #e67400 !important;
}

.btn-sw-load {
    background-color: transparent !important;
    border: 1px solid #FF8201 !important;
    color: #FF8201 !important;
    font-family: "Mulish", sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px !important;
    padding: 10px 40px !important;
}

.btn-sw-load:hover {
    background-color: #FF8201 !important;
    color: #ffffff !important;
}

/* Load More button loading state */
.btn-sw-load.sw-loading {
    cursor: wait;
    opacity: 0.85;
}

.btn-sw-load .sw-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 130, 1, 0.35);
    border-top-color: #FF8201;
    border-radius: 50%;
    animation: sw-spin 0.7s linear infinite;
}

.btn-sw-load.sw-loading:hover {
    background-color: transparent !important;
    color: #FF8201 !important;
}

@keyframes sw-spin {
    to { transform: rotate(360deg); }
}

.btn-sw-back {
    font-family: "Mulish", sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: transparent !important;
    border: 1px solid #FF8201 !important;
    color: #FF8201 !important;
    border-radius: 4px !important;
}

.btn-sw-back:hover {
    background-color: #FF8201 !important;
    color: #ffffff !important;
}

/* ---- Film detail page ---- */
/* centers the heading block and lets it shrink to the title's width */
.sw-film-heading {
    display: inline-block;
    max-width: 100%;
}

.sw-film-title {
    font-family: "filson-pro", sans-serif;
    font-weight: 700;
    font-size: clamp(30px, 4.5vw, 56px);
    color: #ffffff;
    margin: 0;
    letter-spacing: 1px;
}

.sw-film-underline {
    width: calc(100% + 14vw);
    height: 3px;
    background-color: #FF8201;
    margin: 14px -7vw 0;
    border-radius: 3px;
}

.sw-film-subtitle {
    font-family: "sofia-pro", sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 14px 0 0;
}

.sw-film-poster {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.55);
}

.sw-details-box {
    background-color: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 18px;
}

.sw-block-title {
    font-family: "filson-pro", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #FF8201;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 12px;
}

.sw-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sw-details-list li {
    font-family: "sofia-pro", sans-serif;
    font-size: 14px;
    color: #e5e5e5;
    padding: 7px 0;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.sw-details-list li:last-child {
    border-bottom: 0;
}

.sw-details-list li span {
    color: #999999;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    flex: 0 0 auto;
}

.sw-synopsis {
    font-family: "sofia-pro", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #dddddd;
    text-align: justify;
}

.sw-list {
    font-family: "sofia-pro", sans-serif;
    font-size: 14px;
    line-height: 1.9;
    color: #dddddd;
}

.sw-list b {
    color: #ffffff;
    font-weight: 600;
}

.sw-social {
    background-color: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 18px;
    margin-top: 10px;
}

.sw-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sw-social-ic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 18px;
    background-color: #FF8201;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sw-social-ic:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* ---- Videos ---- */
.box-video {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.box-video img.vimeo-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    border-radius: 6px;
}

.sw-video-label {
    font-family: "sofia-pro", sans-serif;
    font-size: 13px;
    color: #FF8201;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

.sw-section-gap {
    height: clamp(30px, 6vw, 90px);
}

/* ---- Header ---- */
nav.mynav {
    background-color: #000000 !important;
    /* cover the theme's body padding-top (85px) so no white strip shows under the nav */
    min-height: 85px;
}

.sw-header-inner {
    padding-left: 7vw !important;
    padding-right: 7vw !important;
    max-width: 100% !important;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.sw-brand-wrap {
    flex: 0 1 auto;
}

/* Burger / toggler sits on the right of the header on mobile */
.sw-nav-toggler {
    margin-left: auto;
    border: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 26px;
    padding: 6px 8px;
    line-height: 1;
    outline: none !important;
    box-shadow: none !important;
}

.sw-nav-toggler:hover,
.sw-nav-toggler:focus {
    color: #FF8201 !important;
}

/* On desktop the toggler is hidden by Bootstrap's navbar-expand-lg anyway */
@media (min-width: 992px) {
    .sw-nav-toggler {
        display: none !important;
    }
}

/* header brand: logo with a tag line underneath */
.demo-1 .navbar-brand.sw-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none !important;
}

.sw-brand .logo {
    margin-top: 6px;
    margin-bottom: 0px;
}

.sw-brand-tag {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 8px;
    padding-top: 4px;
    white-space: nowrap;
}

nav.mynav .navbar-nav .nav-link {
    color: #ffffff !important;
}

nav.mynav .navbar-nav .nav-link:hover {
    color: #FF8201 !important;
}

.sw-menu-item {
    margin-left: 1.4vw;
}

/* center the Top 10 / Graduates / Experimental / All menu items on desktop */
@media (min-width: 992px) {
    .sw-nav-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
        gap: 1.6vw;
        white-space: nowrap;
    }
    .sw-nav-center .sw-menu-item {
        margin-left: 0;
    }
}

.sw-menu-link {
    font-family: "sofia-pro", sans-serif;
    font-weight: 600;
    font-size: clamp(12px, 0.9vw, 15px);
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 4px !important;
}

.sw-menu-link:hover {
    color: #FF8201 !important;
}

/* active nav item - highlight the section you're on in orange (beats the white nav-link rule) */
nav.mynav .navbar-nav .sw-menu-link.active {
    color: #FF8201 !important;
}

.sw-nav-back {
    font-family: "sofia-pro", sans-serif;
    font-weight: 600;
    font-size: clamp(12px, 0.9vw, 15px);
    color: #ffffff !important;
    white-space: nowrap;
}

.sw-nav-back:hover {
    color: #FF8201 !important;
}

/* ---- Search / Filter results page ---- */
.sw-results-page {
    background-color: #000000 !important;
}

.sw-search-band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-color: #111111;
    padding: 3vw calc(50vw - 50%) 2vw;
}

.sw-results-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-color: #000000;
    padding: 3vw calc(50vw - 50%);
}

/* ---- Responsive ---- */
/* Below 768px the theme removes body padding-top (85px) that clears the fixed nav,
   so the student work sections slide up under the nav and hug the menu.
   Restore the spacing on the student work sections (padding, not margin,
   because the section's top margin collapses with the body). */
@media (max-width: 767.98px) {
    .student-work-section.sw-dark,
    .sw-film-page.sw-dark {
        padding-top: calc(85px + 10vh);
    }
}

@media (max-width: 768px) {
    .sw-card {
        flex: 0 0 44vw;
        max-width: 44vw;
    }
    .sw-carousel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .sw-film-title {
        font-size: 32px;
    }
    .sw-carousel-wrap .sw-prev {
        left: 24px;
    }
    .sw-carousel-wrap .sw-next {
        right: 24px;
    }
}

/* Fallback for browsers without container-query support:
   stack the search fields on very small screens. */
@media (max-width: 480px) {
    .sw-search {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }
    .sw-search .student-work-search-input {
        flex: 1 1 auto;
        width: 100%;
        border: 1px solid #FF8201 !important;
        border-radius: 4px !important;
        padding: 12px 14px;
        font-size: 16px;
    }
    .sw-search .student-work-select {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        border: 1px solid #FF8201 !important;
        border-left: 1px solid #FF8201 !important;
        border-radius: 4px !important;
        padding: 12px 14px;
        font-size: 16px;
        background-color: #111111 !important;
    }
    .sw-search .student-work-search-btn {
        width: 100%;
        margin-left: 0;
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 4px;
    }
}
