.hero-banner { width: 100%; }
.hero-banner > img { display: block; width: 100%; max-width: none; height: auto; }
.festival-highlights { width: min(1100px, 100%); margin: 32px auto; padding: 0 16px; }
.festival-video-link { display: block; position: relative; background: #111; border-radius: 8px; overflow: hidden; }
.festival-video-link img { display: block; width: 100%; height: auto; max-height: 75vh; object-fit: contain; }
.media-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #d71920; color: #fff; font-size: 28px; box-shadow: 0 3px 20px #0006; }
.festival-video-link:hover .media-play, .video-card:hover .media-play { background: #af1117; }
.gallery-invitation { width: min(1100px, calc(100% - 32px)); margin: 42px auto; }
.gallery-invitation-card { position: relative; display: flex; align-items: center; gap: 22px; overflow: hidden; padding: 26px 30px; border: 1px solid #e3e3e3; border-radius: 18px; background: #fafafa; box-shadow: 0 4px 16px rgba(0, 0, 0, .04); color: #333; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.gallery-invitation-card::after { content: ""; position: absolute; right: -50px; top: -70px; width: 190px; height: 190px; border-radius: 50%; background: rgba(0, 0, 0, .018); pointer-events: none; }
.gallery-invitation-card:hover { color: #333; text-decoration: none; transform: translateY(-3px); box-shadow: 0 7px 20px rgba(0, 0, 0, .07); }
.gallery-invitation-icon { position: relative; flex: 0 0 64px; display: block; width: 64px; height: 64px; border-radius: 50%; background: #777; box-shadow: none; }
.gallery-invitation-icon::before, .gallery-invitation-icon::after { content: ""; position: absolute; width: 25px; height: 20px; border: 2px solid #fff; border-radius: 3px; background: linear-gradient(145deg, transparent 56%, #fff 57% 64%, transparent 65%); }
.gallery-invitation-icon::before { left: 17px; top: 17px; transform: rotate(-7deg); opacity: .72; }
.gallery-invitation-icon::after { left: 22px; top: 25px; background-color: #777; }
.gallery-invitation-copy { display: block; flex: 1; text-align: left; }
.gallery-invitation-copy strong { display: block; margin-bottom: 4px; color: #333; font-family: "Poppins", sans-serif; font-size: clamp(21px, 2.2vw, 29px); line-height: 1.3; }
.gallery-invitation-copy small { display: block; max-width: 650px; color: #686868; font-size: 15px; line-height: 1.6; }
.gallery-invitation-button { position: relative; z-index: 1; flex: 0 0 auto; padding: 11px 19px; border-radius: 24px; background: #555; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .2s ease; }
.gallery-invitation-card:hover .gallery-invitation-button { background: #333; }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; scroll-margin-top: 110px; }
.gallery-filters button { margin: 0; }
.gallery-item { margin-bottom: 30px; }
.gallery-card { display: block; position: relative; overflow: hidden; border-radius: 8px; background: #eee; }
.gallery-card img { display: block; width: 100%; height: 230px; object-fit: cover; transition: transform .2s; }
.gallery-card:hover img { transform: scale(1.03); }
.video-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 12px 10px; background: linear-gradient(transparent, #000c); color: white; font-size: 14px; }
#gallery-status { text-align: center; margin-bottom: 24px; }
.pagination-container { display: flex; gap: 16px; justify-content: center; }
.media-viewer { position: fixed; inset: 0; width: min(1200px, 96vw); max-width: 96vw; max-height: 96dvh; margin: auto; border: 0; border-radius: 10px; padding: 50px 48px 20px; background: #151515; color: white; text-align: center; }
.media-viewer::backdrop { background: #000d; }
body:has(.media-viewer[open]) { overflow: hidden; }
.media-stage img, .media-stage video { display: block; width: 100%; max-height: 72dvh; object-fit: contain; }
.media-viewer button { position: absolute; border: 0; background: #333; color: white; border-radius: 50%; width: 36px; height: 36px; font-size: 26px; cursor: pointer; }
.media-viewer button[hidden] { display: none; }
.media-close { right: 10px; top: 8px; }
.media-prev { left: 6px; top: 45%; }
.media-next { right: 6px; top: 45%; }
.media-caption { margin: 12px 0 4px; color: white; }
.media-error { color: white; }
a:focus-visible, button:focus-visible { outline: 3px solid #1e73be; outline-offset: 4px; }
@media (max-width: 600px) {
    .media-viewer { padding: 48px 38px 16px; }
    .gallery-filters button { padding: 8px 14px; }
    .festival-highlights { margin: 20px auto; }
    .gallery-invitation { margin: 28px auto; }
    .gallery-invitation-card { flex-direction: column; gap: 14px; padding: 25px 20px; text-align: center; }
    .gallery-invitation-copy { text-align: center; }
    .gallery-invitation-icon { flex-basis: 58px; width: 58px; height: 58px; }
}
