/* IFF38 featured films: a full-screen presentation distinct from film-card sliders. */
.iff38-home .iff38-home-featured {
    position: relative;
    overflow: hidden;
    background: #020611;
    color: #fff;
}
.iff38-home-highlights__slides,
.iff38-home-highlight,
.iff38-home-highlight__media,
.iff38-home-highlight__gradient {
    position: absolute;
    inset: 0;
}
.iff38-home-highlight {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 800ms ease, visibility 800ms;
}
.iff38-home-highlight.is-current {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}
.iff38-home-highlight__media img,
.iff38-home-highlight__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.iff38-home-highlight__media video {
    opacity: 0;
    transition: opacity 500ms ease;
}
.iff38-home-highlight__media video.is-playing {
    opacity: 1;
}
.iff38-home-highlight__gradient {
    background: linear-gradient(90deg, rgba(2,6,17,.80), rgba(2,6,17,.18) 68%), linear-gradient(0deg, rgba(2,6,17,.80), transparent 65%);
    pointer-events: none;
}
.iff38-home-highlight__event,
.iff38-home-highlight__text,
.iff38-home-highlights__nav {
    position: absolute;
    z-index: 2;
}
.iff38-home-highlight__event {
    top: 7%;
    left: 4.2%;
    right: 4%;
}
.iff38-home-highlight__event h2 {
    margin: 0;
    font: 800 clamp(35px, 4vw, 72px)/1.08 Poppins, sans-serif;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ff781b 0%, #fbb551 28%, #3cb5ae 55%, #71569f 82%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: fit-content;
}
.iff38-home-highlight__text {
    bottom: 8%;
    left: 4.2%;
    width: min(640px, 58%);
    transition: transform 400ms ease;
}
.iff38-home-highlight__text h3 {
    color: #fff;
    font: 800 clamp(28px, 3vw, 48px)/1.13 Poppins, sans-serif;
    margin: 0 0 8px;
}
.iff38-home-highlight__he {
    width: fit-content;
    font: 400 25px Heebo, sans-serif;
    margin-bottom: 14px;
}
.iff38-home-highlight__synopsis {
    max-width: 610px;
    margin-bottom: 16px;
	
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: -14px 0 0 !important;
  transition: max-height .6s cubic-bezier(.2,.7,.2,1),opacity .5s ease,margin .6s cubic-bezier(.2,.7,.2,1);
}

.iff38-home-highlight:hover .iff38-home-highlight__synopsis,
.iff38-home-highlight:focus-within .iff38-home-highlight__synopsis {
    max-height: 9em;
    opacity: 1;
    margin: 0 !important;
}
.iff38-home-highlight__synopsis p {
    margin: 10px 0;
    line-height: 1.5;
    color: #fff;
}
.iff38-home-highlight__synopsis p[hidden] {
    display: none;
}
.iff38-home-highlight__langs {
    display: flex;
    width: fit-content;
    border: 1px solid #fff9;
    border-radius: 30px;
    padding: 2px;
}
.iff38-home-highlight__langs button {
  color: #fff;
  border: 0;
  border-radius: 22px;
  padding: 4px 10px !important;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.iff38-home-highlight__langs button.is-active {
    color: #071a3d;
    background: white;
}
.iff38-home-highlight__meta {
    font: 700 12px/1.5 'JetBrains Mono', monospace;
    letter-spacing: .12em;
    margin-bottom: 18px;
}
.iff38-home-highlight__buttons {
    display: flex;
    align-items: center;
    gap: 24px;
}
.iff38-home-highlight__buttons a {
    font: 800 14px Jost, sans-serif;
    text-decoration: none;
    color: #fff;
}
.iff38-home-highlight__buttons a:hover{
  color: rgb(235, 101, 27) !important;
}
.iff38-home-highlight__ticket {
    padding: 13px 24px;
    border-radius: 30px;
    background: linear-gradient(90deg, #f04b47, #eb651b);
}
.iff38-home-highlight__ticket:hover{
  color: rgb(2, 6, 17) !important;
}
.iff38-home-highlights__nav {
    bottom: 7%;
    right: 4%;
    display: flex;
    align-items: center;
    gap: 12px;
}
.iff38-home-highlights__nav > button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #fff;
    border-radius: 50%;
    color: white;
    background: #071a3d55;
    font-size: 24px;
    cursor: pointer;
}
.iff38-home-highlights__dots {
    display: flex;
    gap: 6px;
    margin-right: 8px;
}
.iff38-home-highlights__dots button {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 10px;
    background: #ffffff77;
    cursor: pointer;
}
.iff38-home-highlights__dots button.is-current {
    width: 26px;
    background: white;
}
@media (max-width: 767px) {
    .iff38-home-highlight__event {
        top: 5%;
    }
    .iff38-home-highlight__text {
        bottom: 15%;
        width: 90%;
    }
    .iff38-home-highlight__synopsis {
        display: block;
        max-height: 19vh;
        overflow-y: auto;
    }
    .iff38-home-highlights__nav {
        bottom: 5%;
    }
}

/* Editable event subtitle for each highlighted film */
.iff38-home-highlight__event-subtitle {
    color: #e4e8ee;
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.5;
    margin: 12px 0 0;
    text-transform: uppercase;
}
