/* Scoped to the homepage hero; the other Swiper instances keep their settings. */
.home-fair-slider {
    height: clamp(600px, 46.68vw, 980px);
}

.home-fairs.swiper-slide {
    display: flex;
    flex-direction: column;
    background: #f8f5ef;
    font-family: Arial, sans-serif;
}

.home-fairs__heading {
    position: relative;
    flex: 0 0 11.3%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 85px;
    color: #242424;
}

.home-fairs__heading h2 {
    margin: 0;
    color: inherit;
    font: 400 clamp(22px, 2.1vw, 40px)/1.2 Arial, sans-serif;
    letter-spacing: -0.8px;
    text-align: center;
    unicode-bidi: plaintext;
}

.home-fairs__heading > span {
    position: absolute;
    right: 3.8%;
    font-size: 14px;
    letter-spacing: 2px;
}

.home-fairs__panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1;
    min-height: 0;
}

.home-fairs__panel {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
}

/* Crop the blank heading strip in CSS without stretching the booth photos. */
.home-fairs__art {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    aspect-ratio: 918 / 761;
    background-image: url('../images/slider/fairs-2026/booths.jpg');
    background-size: 200% 112.75%;
    background-repeat: no-repeat;
    background-position: left bottom;
}

.home-fairs__panel--istanbul .home-fairs__art { background-position: right bottom; }

.home-fairs__panel--essen {
    background-color: #191b1c;
    background-position: left bottom;
    color: #fff;
}

.home-fairs__panel--istanbul {
    background-color: #f8f5ef;
    background-position: right bottom;
    color: #111;
}

.home-fairs__panel:hover { color: inherit; }
.home-fairs__panel--essen:hover { color: #fff; }
.home-fairs__panel--istanbul:hover { color: #111; }
.home-fairs__panel:focus-visible { outline: 3px solid #079fca; outline-offset: -5px; }

.home-fairs__copy {
    position: relative;
    z-index: 2;
    margin: 4.2% 7.7%;
    padding-left: 3.8%;
    border-left: 2px solid #009fcd;
    text-align: start;
}

.home-fairs__panel--istanbul .home-fairs__copy { border-color: #f67622; }
.home-fairs__copy[dir="rtl"] .home-fairs__city { letter-spacing: normal; }
.home-fairs__copy p { margin: 0; line-height: 1.25; }
.home-fairs__copy .home-fairs__city {
    margin-bottom: 10px;
    font-size: clamp(11px, 1vw, 18px);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.home-fairs__copy h3 {
    margin: 0 0 6px;
    color: inherit;
    font: 700 clamp(32px, 3.9vw, 72px)/1.08 Arial, sans-serif;
    letter-spacing: -1.5px;
}

.home-fairs__copy .home-fairs__tagline {
    margin-bottom: 14px;
    font-size: clamp(15px, 1.45vw, 26px);
}

.home-fairs__copy .home-fairs__date,
.home-fairs__copy .home-fairs__stand {
    font-size: clamp(19px, 1.65vw, 30px);
    font-weight: 700;
}

.home-fairs__copy .home-fairs__venue {
    margin: 3px 0;
    font-size: clamp(17px, 1.55vw, 28px);
}

@media (max-width: 767px) {
    .home-fair-slider { height: 864px; }
    .home-fairs__heading { flex-basis: 64px; padding: 12px 20px; }
    .home-fairs__heading h2 { font-size: 21px; letter-spacing: -0.5px; }
    .home-fairs__heading > span { display: none; }
    .home-fairs__panels { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
    .home-fairs__panel::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(#191b1c 30%, rgba(25, 27, 28, .95) 45%, transparent 70%);
    }
    .home-fairs__panel--istanbul::before {
        background: linear-gradient(#f8f5ef 30%, rgba(248, 245, 239, .96) 45%, transparent 70%);
    }
    .home-fairs__copy { margin: 22px 24px; padding-left: 14px; }
    .home-fairs__copy .home-fairs__city { font-size: 11px; letter-spacing: 2px; margin-bottom: 6px; }
    .home-fairs__copy h3 { font-size: 30px; letter-spacing: -1px; }
    .home-fairs__copy .home-fairs__tagline { font-size: 15px; margin-bottom: 12px; }
    .home-fairs__copy .home-fairs__date,
    .home-fairs__copy .home-fairs__stand { font-size: 18px; }
    .home-fairs__copy .home-fairs__venue { font-size: 16px; }
}
