:root {
    --red: #9B000A;
    --active-red: #FF0000;
    --white: #FFFFFF;
    --black: #000000;
    --font-heading: "archivo-extra-condensed", sans-serif;
    --font-subtitle: "archivo-condensed", sans-serif;
    --font-body: "archivo-condensed", sans-serif;
}

/* GLOBAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--black);
}

img,
video {
    display: block;
}

button {
    font-family: inherit;
}

.slide-intro {
    cursor: pointer;
}

/* ARTICLE LINKS */

.article-link {
    position: absolute;
    inset: 0;
    z-index: 4;
    cursor: pointer;
}

.gloria-xmas {
    display: flex;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x pinch-zoom;
}

.gloria-xmas::-webkit-scrollbar {
    display: none;
}

/* SLIDE */

.slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* IMAGES & VIDEO */

.slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.slide-media img,
.slide-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

/* GLORIA LOGO */

.gloria-logo {
    position: absolute;
    top: 3%;
    left: 6%;
    width: 35%;
    max-width: 17rem;
    height: auto;
    z-index: 3;
}

.gloria-logo img {
    width: 100%;
    height: auto;
}

/* TYPOGRAPHY */

.slide-content {
    position: absolute;
    z-index: 2;
}

.slide-title,
.intro-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0;
    text-transform: uppercase;
}

.slide-eyebrow {
    font-family: var(--font-subtitle);
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.slide-subtitle {
    font-family: var(--font-subtitle);
    font-weight: 800;
    font-style: normal;
    color: var(--black);
    letter-spacing: 0;
    text-transform: uppercase;
}

.slide-title span {
    display: block;
}

/* PAGINATION / SLIDER */

/* PAGINATION / SLIDER */

.slide-pagination {
    position: fixed;
    left: 6%;
    right: 6%;
    bottom: 1.5%;
    display: flex;
    align-items: center;
    gap: 1%;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-pagination.is-visible {
    visibility: visible;
    opacity: 1;
}

.pagination-item {
    position: relative;
    flex: 1;
    height: 2rem;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.pagination-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 0.35rem;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    transition: background-color 0.25s ease;
}

.slide-pagination.is-gray .pagination-item:not(.active)::after {
    background: #BFBDBD;
}

.pagination-item.active::after {
    background: var(--active-red);
}

.pagination-item:focus-visible {
    outline: 2px solid var(--active-red);
    outline-offset: 2px;
}

/* INTRO */

.slide-intro {
    background: #BF2131;
}

.slide-intro .slide-content {
    top: 5%;
    left: 50%;
    width: 52%;
    transform: translateX(-50%);
}

.slide-intro .gloria-logo {
    position: static;
    width: 100%;
    max-width: none;
}

.intro-title {
    display: none;
}

/* TIA */

.slide-tia {
    background: #928E37;
    color: var(--white);
}

.slide-tia .gloria-logo {
    left: auto;
    right: 5%;
}

.slide-tia .slide-content {
    left: 6%;
    right: 6%;
    bottom: 6%;
    display: flex;
    flex-direction: column;
}

.slide-tia .slide-eyebrow {
    font-size: 48px;
    line-height: 48px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.75);
}

.slide-tia .slide-title {
    font-size: 260px;
    font-weight: 900;
    line-height: 195px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.75);
}

.slide-tia .next-slide {
    position: absolute;
    right: 6%;
    bottom: 9%;
    width: 26px;
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    z-index: 5;
}

.next-slide svg {
    display: block;
    width: 100%;
    height: auto;
}

/* THE INTERVIEW */

.slide-interview {
    background: #101925;
    color: var(--white);
}

.slide-interview .slide-content {
    top: 15%;
    left: 4%;
    right: 4%;
}

.slide-interview .slide-title {
    font-size: 80px;
    line-height: 70px;
}

/* THE LOOKS */

.slide-looks {
    background: #E8E9EB;
    color: var(--red);
}

.slide-looks .slide-media img {
    object-position: center bottom;
}

.slide-looks .slide-content {
    top: 16%;
    left: 6%;
    right: 6%;
}

.slide-looks .slide-title {
    font-size: 140px;
    line-height: 110px;
}

.slide-looks .slide-subtitle {
    margin-top: 8%;
    font-size: 32px;
    line-height: 26px;
    text-align: left;
}

/* HOLIDAY DECOR */

.slide-decor {
    background: #E3E4E6;
    color: var(--white);
}

.slide-decor .gloria-logo {
    left: 10%;
}

.slide-decor .slide-content {
    top: 13.5%;
    left: 6%;
    right: 6%;
    text-align: center;
}

.slide-decor .slide-title {
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.75);
}

.slide-decor .title-holiday {
    font-size: 90px;
    line-height: 75px;
}

.slide-decor .title-decor {
    font-size: 100px;
    line-height: 85px;
}

/* ZA ONE KOJI IMAJU SVE */

.slide-gifts {
    background: #D4CBC3;
    color: var(--red);
}

.slide-gifts .slide-content {
    top: 14%;
    left: 3.5%;
    right: 3.5%;
}

.slide-gifts .title-za-one {
    font-size: 80px;
    line-height: 68px;
}

.slide-gifts .title-koji-imaju {
    font-size: 80px;
    line-height: 68px;
}

.slide-gifts .title-sve {
    font-size: 130px;
    line-height: 100px;
}

/* THE FESTIVE TABLE */

.slide-table {
    background: #F4F5F6;
    color: var(--red);
}

.slide-table .gloria-logo {
    top: 45%;
    left: 5%;
}

.slide-table .slide-content {
    left: 7%;
    right: 6%;
    bottom: 7.5%;
}

.slide-table .title-the {
    font-size: 80px;
    line-height: 70px;
}

.slide-table .title-festive,
.slide-table .title-table {
    font-size: 115px;
    line-height: 90px;
}

.slide-table .slide-subtitle {
    margin-top: 4%;
    font-size: 32px;
    line-height: 26px;
    text-align: right;
}

/* HAPPY HOLIDAYS */

.slide-holidays {
    background: #F4F5F6;
    color: var(--red);
}

.slide-holidays .slide-content {
    top: 14%;
    left: 5%;
    right: 4%;
    text-align: right;
}

.slide-holidays .slide-title {
    font-size: 70px;
    font-weight: 900;
    line-height: 60px;
}

.slide-holidays .gloria-logo {
    top: 31%;
    left: auto;
    right: 5%;
}

/* DESKTOP */

@media (min-width: 768px) and (min-aspect-ratio: 1/1) {
    /* COMMON DESKTOP */

    .gloria-logo {
        top: 4%;
        left: auto;
        right: 12%;
        width: 10%;
        max-width: none;
    }

    .slide-content {
        top: 50%;
        left: 63.5%;
        right: 12%;
        bottom: auto;
        transform: translateY(-50%);
    }

    /* PAGINATION – DESKTOP */

    .slide-pagination {
        left: 64%;
        right: auto;
        bottom: 6%;
        width: 23%;
    }

    /* .pagination-item::after {
        height: 0.25rem;
    }

    .slide-looks .pagination-item:not(.active)::after {
        background: #BFBDBD;
    } */

    /* INTRO */

    .slide-intro .slide-media {
        left: 12%;
        width: 31.5%;
        height: 100%;
        overflow: hidden;
    }

    .slide-intro .slide-media video {
        transform: scale(1.005);
    }

    .slide-intro .slide-content {
        top: 50%;
        left: 57%;
        right: 12%;
        width: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        transform: translateY(-50%);
        text-align: center;
    }

    .intro-title {
        display: block;
        color: var(--white);
        font-size: 54px;
        line-height: 88px;
    }

    /* TIA */

    .slide-tia .slide-media {
        left: 12%;
        width: 44%;
    }

    .slide-tia .gloria-logo {
        left: auto;
        right: 12%;
    }

    .slide-tia .slide-content {
        top: 50%;
        left: 64%;
        right: 12%;
        bottom: auto;
    }

    .slide-tia .slide-eyebrow {
        font-size: 72px;
        line-height: 72px;
        text-shadow: none;
    }

    .slide-tia .slide-title {
        font-size: 360px;
        line-height: 250px;
        margin-left: -22px;
        text-shadow: none;
    }

    .slide-tia .next-slide {
        top: auto;
        bottom: 6%;
        right: 8%;
        width: 48px;
        height: 2rem;
        display: flex;
        align-items: center;
    }

    .slide-tia .next-slide {
        transition: transform 0.3s ease;
    }

    .slide-tia .next-slide:hover {
        transform: translateX(8px);
    }

    /* THE INTERVIEW */

    .slide-interview .slide-media img {
        object-position: center 35%;
    }

    .slide-interview .slide-content {
        top: 27%;
        left: 63%;
        right: 10%;
        transform: none;
    }

    .slide-interview .slide-title {
        font-size: 120px;
        line-height: 110px;
        text-shadow: 0 4px 16px rgba(0, 0, 0, 0.75);
    }

    /* THE LOOKS */

    .slide-looks .slide-media {
        left: 12%;
        width: 44%;
    }

    .slide-looks .slide-content {
        top: 33%;
        left: 63.5%;
        right: 12%;
        transform: none;
    }

    .slide-looks .slide-title {
        font-size: 200px;
        line-height: 160px;
    }

    .slide-looks .slide-subtitle {
        margin-top: 6%;
        font-size: 48px;
        line-height: 40px;
        text-align: right;
    }

    /* HOLIDAY DECOR */

    .slide-decor .slide-media {
        left: 15%;
        width: 37%;
    }

    .slide-decor .gloria-logo {
        left: auto;
        right: 12%;
    }

    .slide-decor .slide-content {
        top: 50%;
        left: 63.5%;
        right: 12%;
        transform: translateY(-50%);
        text-align: left;
        color: var(--red);
    }

    .slide-decor .slide-title {
        text-shadow: none;
    }

    .slide-decor .title-holiday {
        font-size: 150px;
        line-height: 150px;
    }

    .slide-decor .title-decor {
        font-size: 120px;
        line-height: 96px;
    }

    /* ZA ONE KOJI IMAJU SVE */

    .slide-gifts .slide-content {
        top: auto;
        left: 63.5%;
        right: 12%;
        bottom: 16%;
        transform: none;
    }

    .slide-gifts .title-za-one {
        font-size: 96px;
        line-height: 75px;
    }

    .slide-gifts .title-koji-imaju {
        font-size: 110px;
        line-height: 90px;
    }

    .slide-gifts .title-sve {
        font-size: 160px;
        line-height: 130px;
    }

    /* THE FESTIVE TABLE */

    .slide-table .slide-media {
        left: 12%;
        width: 44%;
    }

    .slide-table .gloria-logo {
        top: 4%;
        left: auto;
        right: 12%;
    }

    .slide-table .slide-content {
        top: 28%;
        left: 63.5%;
        right: 12%;
        bottom: auto;
        transform: none;
    }

    .slide-table .title-the {
        font-size: 120px;
        line-height: 70px;
    }

    .slide-table .title-festive,
    .slide-table .title-table {
        font-size: 160px;
        line-height: 140px;
    }

    .slide-table .slide-subtitle {
        margin-top: 10%;
        font-size: 48px;
        line-height: 40px;
    }

    /* HAPPY HOLIDAYS */

    .slide-holidays .slide-media {
        left: auto;
        right: 0;
        width: 46%;
    }

    .slide-holidays .gloria-logo {
        top: 4%;
        left: 12%;
        right: auto;
    }

    .slide-holidays .slide-content {
        top: 50%;
        left: 12%;
        right: 49%;
        transform: translateY(-50%);
        text-align: left;
    }

    .slide-holidays .slide-title {
        font-size: 200px;
        line-height: 160px;
    }

    /* .slide-holidays .slide-pagination {
        left: 12%;
        right: auto;
        width: 23%;
    } */
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .pagination-item::after {
        transition: none;
    }
}

/* MOBILE – IMAGE POSITION */

@media (max-width: 767px), (max-aspect-ratio: 1/1) {
    /* THE INTERVIEW */

    .slide-interview .slide-media img {
        object-position: center 23%;
    }

    /* THE LOOKS */

    .slide-looks .slide-media {
        top: auto;
        bottom: 0;
        height: 80%;
    }

    .slide-looks .slide-media img {
        object-position: 2% bottom;
    }

    /* HOLIDAY DECOR */

    .slide-decor .slide-media {
        inset: 0;
        height: 100%;
    }

    .slide-decor .slide-media img {
        object-position: 24% center;
        transform: translateY(-4%);
    }

    /* ZA ONE KOJI IMAJU SVE */

    .slide-gifts .slide-media img {
        object-position: center bottom;
    }

    /* THE FESTIVE TABLE */

    .slide-table {
        background: none;
    }

    .slide-table .slide-media {
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .slide-table .gloria-logo {
        top: 46%;
        left: 5%;
        width: 30%;
    }

    .slide-table .slide-content {
        bottom: 7%;
        left: 7%;
        right: 6%;
    }

    .slide-table .title-the {
        font-size: 60px;
        line-height: 50px;
    }

    .slide-table .title-festive,
    .slide-table .title-table {
        font-size: 95px;
        line-height: 75px;
    }

    .slide-table .slide-subtitle {
        margin-top: 3%;
        font-size: 28px;
        line-height: 24px;
        text-align: right;
    }

    /* HAPPY HOLIDAYS */

    .slide-holidays .slide-media {
        inset: 0;
        width: 100%;
        height: 100%;
    }
}

/* MOBILE – ALL DEVICES */

@media (max-width: 767px) {
    .gloria-logo {
        width: 32%;
    }

    /* .slide-pagination {
        bottom: 1.5%;
    } */

    /* TIA */

    .slide-tia .slide-content {
        bottom: 8%;
    }

    .slide-tia .slide-eyebrow {
        font-size: 40px;
        line-height: 42px;
    }

    .slide-tia .slide-title {
        font-size: 225px;
        line-height: 175px;
        margin-left: -10px;
    }

    /* THE INTERVIEW */

    .slide-interview .slide-title {
        font-size: 68px;
        line-height: 60px;
    }

    /* THE LOOKS */

    .slide-looks .slide-media {
        height: 76%;
    }

    .slide-looks .slide-title {
        font-size: 120px;
        line-height: 90px;
    }

    .slide-looks .slide-subtitle {
        margin-top: 6%;
        font-size: 27px;
        line-height: 23px;
    }

    /* HOLIDAY DECOR */

    .slide-decor .slide-media img {
        object-position: 18% center;
        transform: scale(1.12);
        transform-origin: left bottom;
    }

    .slide-decor .slide-content {
        top: 14%;
    }

    .slide-decor .title-holiday {
        font-size: 85px;
        line-height: 70px;
    }

    .slide-decor .title-decor {
        font-size: 95px;
        line-height: 80px;
    }

    /* ZA ONE KOJI IMAJU SVE */

    .slide-gifts .slide-media img {
        object-position: center 70%;
    }

    .slide-gifts .title-za-one {
        font-size: 68px;
        line-height: 58px;
    }

    .slide-gifts .title-koji-imaju {
        font-size: 68px;
        line-height: 58px;
    }

    .slide-gifts .title-sve {
        font-size: 110px;
        line-height: 85px;
    }

    /* THE FESTIVE TABLE */

    .slide-table .gloria-logo {
        top: 47%;
    }

    .slide-table .slide-content {
        top: auto;
    }

    /* HAPPY HOLIDAYS */

    .slide-holidays .slide-title {
        font-size: 60px;
        line-height: 52px;
    }

    .slide-holidays .gloria-logo {
        top: 32%;
        width: 30%;
    }
}
