body {
    background-color: var(--pink);
    transition: background-color 0.3s ease;
}

body.home-past-hero {
    background-color: var(--almost-white);
}

main {
    overflow-x: clip;
    background-color: var(--almost-white);
}

/* -------------------- HOME HERO -------------------- */
.home-hero.fade-in,
.home-logo.fade-in {
    transition: opacity 0.2s ease;
}

.home-hero {
    position: relative;
    width: 100%;
    height: 100dvh;
}

.home-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.home-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-logo {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding-top: 30px;
    padding-bottom: 30px;
    pointer-events: none;
}

.home-logo img {
    width: auto;
    height: 13dvw;
    display: block;
}

@media (max-width: 767px) {
    .home-logo img {
        height: 32dvw;
    }
}

/* -------------------- HOME INTRO STRIP -------------------- */
.home-intro-strip {
    margin-top: 0;
}

.home-intro-strip-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 64px;
    margin-bottom: 80px;
    padding: 0 var(--grid-margin);
    color: var(--gold);
}

.home-intro-strip-header .intro-title {
    margin: 0;
    text-align: center;
}

.home-intro-strip-carousel {
    position: relative;
}

.home-intro-strip-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 10vw;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: default;
    transition: background 0.2s ease;
}

.home-intro-strip-zone-cursor {
    display: none;
}

.home-intro-strip-zone-prev {
    left: 0;
}

.home-intro-strip-zone-next {
    right: 0;
}

@media (hover: hover) {
    .home-intro-strip-zone {
        cursor: none;
    }

    .home-intro-strip-zone-cursor {
        display: block;
        position: fixed;
        z-index: 10;
        pointer-events: none;
        opacity: 0;
        font-family: "OCR-X-Regular", "Courier New", Courier, monospace;
        font-size: var(--fs-prev-next);
        line-height: 1;
        color: var(--gold);
        transform: translate(-50%, -50%);
        transition: opacity 0.2s ease;
    }

    .home-intro-strip-zone.is-hover .home-intro-strip-zone-cursor {
        opacity: 1;
    }

    .home-intro-strip-zone-prev:hover {
        background: linear-gradient(to right, var(--almost-white), transparent);
    }

    .home-intro-strip-zone-next:hover {
        background: linear-gradient(to left, var(--almost-white), transparent);
    }
}

.home-intro-strip-swiper {
    width: 100%;
    overflow: hidden;
}

.home-intro-strip-swiper .swiper-wrapper {
    align-items: center;
}

.home-intro-strip-swiper .swiper-slide {
    box-sizing: border-box;
    height: auto;
}

.home-intro-strip-slide {
    height: auto;
}

.home-intro-strip-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 0;
    color: inherit;
    text-decoration: none;
}

.home-intro-strip-visual {
    display: block;
    width: 100%;
}

.home-intro-strip-image {
    width: 100%;
    height: auto;
    display: block;
}

.home-intro-strip-caption {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    width: 100%;
    margin-top: 20px;
    text-align: center;
    color: var(--gray);
    transition: color 0.2s ease;
}

.home-intro-strip-link:hover .home-intro-strip-caption {
    color: var(--gold);
}

.home-intro-strip-image-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--gray);
}

@media (max-width: 767px) {
    .home-intro-strip-header {
        margin-bottom: 56px;
    }
}

/* -------------------- HOME CAROUSELS -------------------- */
.home-photo-related .photo-grid-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

.home-news,
.home-blog,
.home-photo-related {
    margin-top: 120px;
}

/* -------------------- HOME BLOG -------------------- */
.home-blog {
    padding: 0;
}

.home-blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 var(--grid-margin);
    color: var(--gold);
}

.home-blog-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-blog-prev,
.home-blog-next {
    border: 0;
    background: transparent;
    color: inherit;
    font-family: "OCR-X-Regular", "Courier New", Courier, monospace;
    font-size: var(--fs-prev-next);
    line-height: var(--lh);
    cursor: pointer;
}

.home-blog-prev.swiper-button-disabled,
.home-blog-next.swiper-button-disabled {
    opacity: 0.4;
}

.home-blog-swiper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.home-blog-slide {
    height: auto;
}

.home-blog-slide-link {
    display: flex;
    flex-direction: column;
    aspect-ratio: 3 / 4;
    background: var(--home-blog-card-accent);
    border-radius: 4px;
    padding: 1.25vw 1.25vw 1.5vw 1.5vw;
    color: var(--gold);
    position: relative;
    overflow: hidden;
}

.home-blog-slide-cover {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

.home-blog-slide-title {
    word-break: break-word;
}

.home-blog-slide-logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.home-blog-slide-text-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: inherit;
    background: var(--home-blog-card-accent);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.home-blog-slide-text-title {
    text-transform: uppercase;
}

.home-blog-slide-text p {
    margin-top: var(--lh);
}

@media (hover: hover) {
    .home-blog-slide-link.has-text-slide:hover .home-blog-slide-text-panel {
        opacity: 1;
    }
}

@media (hover: none) {
    .home-blog-slide-link.has-text-slide.is-revealed .home-blog-slide-text-panel {
        opacity: 1;
    }

    .home-news-slide-card.is-revealed .home-news-slide-image {
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .home-blog-header {
        margin-bottom: 25px;
    }

    .home-blog-slide-link {
        padding: 15px 15px 20px 20px;
    }

    .home-blog-slide-text-panel {
        padding: 15px 15px 20px 20px;
    }
}

/* -------------------- HOME NEWS -------------------- */
.home-news {
    padding: 0;
}

.home-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 var(--grid-margin);
    color: var(--gold);
}

.home-news-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-news-prev,
.home-news-next {
    border: 0;
    background: transparent;
    color: inherit;
    font-family: "OCR-X-Regular", "Courier New", Courier, monospace;
    font-size: var(--fs-prev-next);
    line-height: var(--lh);
    cursor: pointer;
}

.home-news-prev.swiper-button-disabled,
.home-news-next.swiper-button-disabled {
    opacity: 0.4;
}

.home-news-swiper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.home-news-slide {
    height: auto;
}

.home-news-slide-card {
    display: block;
    aspect-ratio: 3 / 4;
    background: var(--gold);
    border-radius: 4px;
    padding: 1.25vw 1.25vw 1.5vw 1.5vw;
    color: var(--pink);
    position: relative;
    overflow: hidden;
}

.home-news-slide-content {
    position: relative;
    z-index: 1;
}

.home-news-slide-time {
    margin-top: 0;
}

.home-news-slide-text {
    margin-top: var(--lh);
}

.home-news-slide-text p {
    margin-top: var(--lh);
}

.home-news-slide-text p:first-child {
    margin-top: 0;
}

.home-news-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

@media (hover: hover) {
    .home-news-slide-card:hover .home-news-slide-image,
    .home-news-slide-card:focus-within .home-news-slide-image {
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .home-news-header {
        margin-bottom: 25px;
    }

    .home-news-slide-card {
        padding: 15px 15px 20px 20px;
    }
}
