/* ELEVATE 2027 PRE-SALE PAGE */

body{
    overflow-x: hidden;
}

.page-template-e27-presale .background {
    position: relative;
    background: linear-gradient(180deg, #000 0%, #000 31%, var(--purple) 69%, var(--blue) 76%, var(--blue) 80%, #000 96%, #000 100%);
}

/* HERO */

.e27-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 1032px;
    overflow: hidden;
    background: #000;
}

.e27-hero__media {
    position: absolute;
    inset: 0;
}

.e27-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 67.174%, #000 100%);
}

.e27-hero__img,
.e27-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.e27-hero__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 222px;
}

.e27-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    color: #fff;
    filter: drop-shadow(0 0 3.2px rgba(0, 0, 0, 0.25));
}

.e27-hero__meta {
    margin: 0;
    font-family: Poppins;
    font-weight: 400;
    font-size: 22px;
    line-height: 28px;
}

.e27-hero__location {
    font-weight: 500;
}

.e27-hero__divider {
    font-weight: 500;
}

.e27-hero__title {
    margin: 0;
    font-family: Poppins;
    font-weight: 500;
    font-size: 62px;
    line-height: 1.3;
    color: #fff;
}

.e27-hero__cta .blue-bubble,
.e27-spot__open .blue-bubble {
    width: auto;
    padding: 0 36px;
    white-space: nowrap;
}

.watch-menu {
    display: flex;
    gap: 35px 15px;
    margin: 3px 0 20px;
}
.watch-tax-term::after {
    top: 30px;
}
.watch-player-playlist {
    padding: 10px;
    margin-bottom: 13px;
}
.watch-player-see-all {
    margin: auto 25px 30px;
}
@media (max-width: 767px) {
    .watch-player-see-all {
        margin: auto 25px 20px;
    }
}
/* SECURE YOUR SPOT */

.e27-spot {
    position: relative;
    color: #fff;
}

.e27-spot__wrap {
    display: flex;
    margin: 0 auto;
}

.e27-spot__title {
    margin: 0;
    font-family: Poppins;
    font-weight: 400;
    font-size: 52px;
    line-height: 1.3;
    color: #fff;
}

.e27-spot__text {
    margin: 0;
    font-family: Poppins;
    font-weight: 300;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.24px;
}

.e27-spot__head {
    display: flex;
    flex-direction: column;
}

.e27-spot__open {
    display: none;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
}

/* Pricing mode */

.e27-spot--pricing .e27-spot__wrap {
    max-width: 929px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 133px 0 134px;
}

.e27-spot--pricing .e27-spot__info {
    width: 515px;
}

.e27-spot--pricing .e27-spot__head {
    gap: 23px;
}

.e27-spot--pricing .e27-spot__aside {
    width: 239px;
    flex: none;
}

/* Form mode */

.e27-spot--form .e27-spot__wrap {
    max-width: 1280px;
    gap: 32px;
    padding: 120px 0;
}

.e27-spot--form .e27-spot__info {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.e27-spot--form .e27-spot__head {
    width: 517px;
    gap: 22px;
}

.e27-spot__privacy {
    margin: 0 auto 22px;
    font-family: Poppins;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #7c7b7b;
}
@media (max-width: 767px) {
    .e27-spot__privacy {
        font-size: 12px;
    }
}
.e27-spot__form {
    width: 624px;
    height: 960px;
    border-radius: 36px;
    overflow: hidden;
    /*background: #fff; */
}

.e27-spot__iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    /*margin-top: -64px;
    margin-left: -7px; */
}

/* Ticket widget placeholder */

.e27-ticket {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 239px;
    font-family: Poppins;
}

.e27-ticket__card {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

/* Inside stroke, as in the design */
.e27-ticket__card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid #fff;
    border-radius: 10px;
}

.e27-ticket__card img,
.e27-ticket__order {
    display: block;
    width: 100%;
    height: auto;
}

.e27-ticket__order {
    width: 135px;
    border-radius: 16.5px;
}

/* Mobile form popup */

/* Transparent dialog: white form card with the privacy text below it */
.e27-spot-popup {
    width: min(100% - 32px, 624px);
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    overflow: visible;
    background: transparent;
}
.e27-spot-popup {
    width: 100%;
    max-height: 100%;
    height: 100%;
    padding: 24px;
    background: black;
}

.e27-spot-popup[open] {
    display: flex;
    flex-direction: column;
}

.e27-spot-popup::backdrop {
    background: rgba(0, 0, 0, 0.7);
}

/* Shrinks to leave room for the privacy text on short screens */
.e27-spot-popup__card {
    position: relative;
    display: flex;
    flex: 0 1 760px;
    min-height: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    max-width: 628px;
    margin: 0 auto;
    width: 100%
}
html:has(.e27-spot-popup[open]) {
    overflow: hidden;
}
.e27-spot-popup__body {
    flex: 1;
    min-height: 0;
}

.e27-spot-popup__privacy {
    flex: none;
    margin: 16px 0 0;
    text-align: left;
}

.e27-spot-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

body.e27-popup-open {
    overflow: hidden;
}

/* SPEAKERS (same as the NY3 location page) */

.page-template-e27-presale .speakers__title {
    font-size: 52px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    color: #fff;
    margin: 0 auto;
    text-wrap: pretty;
}

.page-template-e27-presale .speakers__item {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    max-width: 296px;
    height: auto;
    align-items: center;
    padding: 24px;
    border-radius: 32px;
    background: #fff;
}

.page-template-e27-presale .speakers__item:hover .figure2 .speakers__figure:nth-child(1) {
    border-radius: 54px 54px 0 0;
}

.page-template-e27-presale .speakers__item:hover .figure2 .speakers__figure:nth-child(2) {
    border-radius: 0 0 54px 54px;
}

.page-template-e27-presale .speakers__item:hover .figure3 .speakers__figure:nth-child(1),
.page-template-e27-presale .figure1 .speakers__figure:nth-child(1),
.page-template-e27-presale .swiper-horizontal .speakers__item:hover .figure1 .speakers__figure:nth-child(1) {
    border-radius: 54px 54px 0 0;
}

.page-template-e27-presale .speakers__item:hover .figure3 .speakers__figure:nth-child(3),
.page-template-e27-presale .figure1 .speakers__figure:nth-child(3),
.page-template-e27-presale .swiper-horizontal .speakers__item:hover .figure1 .speakers__figure:nth-child(3) {
    border-radius: 0 0 54px 54px;
}

.page-template-e27-presale .speakers__item:hover .circle .speakers__figure {
    border-radius: 54px;
}

.page-template-e27-presale .speakers__name {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    margin-top: 26px;
}

.page-template-e27-presale .speakers__arrows {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
    position: relative;
}

.page-template-e27-presale .speakers__arrow:hover svg {
    fill: #1C1D21;
}

.page-template-e27-presale .speakers__btn {
    display: flex;
    align-items: center;
    border: 1px solid #fff;
    border-radius: 83px;
    padding: 15px 36px;
    font-size: 16px;
    line-height: 1.3;
    color: #fff;
    transition: .3s;
}

.page-template-e27-presale .speakers__btn:hover {
    color: #fff;
    background: #1C1D21;
    text-decoration: none;
}

/* 1440 design */
@media (max-width: 1919px) {
    .e27-hero {
        height: 821px;
        margin-top: 72px;
    }

    .e27-hero__container {
        padding-bottom: 187px;
        padding-left: 6px;
    }

    .e27-spot--form .e27-spot__wrap {
        padding-bottom: 72px;
    }
}

/* 1440 design: 80px side gutters */
@media (max-width: 1439px) {
    .e27-hero__container {
        max-width: none;
        padding-left: 86px;
        padding-right: 80px;
    }

    .e27-spot--form .e27-spot__wrap {
        max-width: none;
        padding-left: 80px;
        padding-right: 80px;
    }

    .e27-spot--form .e27-spot__head {
        width: 100%;
        max-width: 517px;
    }
}

/* 1024 design */
@media (max-width: 1279px) {
    .e27-hero {
        height: 821px;
    }

    .e27-hero__container {
        padding: 0 46px 122px;
    }

    .e27-spot--pricing .e27-spot__wrap {
        max-width: calc(929px + 94px);
        padding: 133px 47px 134px;
    }

    .e27-spot--form .e27-spot__wrap {
        max-width: calc(930px + 94px);
        padding: 80px 47px 120px;
    }

    .e27-spot--form .e27-spot__info {
        flex: none;
        width: 369px;
    }

    .e27-spot--form .e27-spot__title {
        font-size: 62px;
        line-height: 1.1;
    }

    .e27-spot--form .e27-spot__text {
        font-weight: 400;
        font-size: 18px;
        line-height: 1.6;
        letter-spacing: 0;
    }

    .e27-spot__form {
        width: 529px;
        height: 743px;
        border-radius: 20px;
    }
}

@media (max-width: 1439px) {
    .page-template-e27-presale .speakers__item {
        max-width: 254px;
    }

    .page-template-e27-presale .speakers__item:hover .figure2 .speakers__figure:nth-child(1) {
        border-radius: 45px 45px 0 0;
    }

    .page-template-e27-presale .speakers__item:hover .figure2 .speakers__figure:nth-child(2) {
        border-radius: 0 0 45px 45px;
    }

    .page-template-e27-presale .speakers__item:hover .figure3 .speakers__figure:nth-child(1),
    .page-template-e27-presale .figure1 .speakers__figure:nth-child(1),
    .page-template-e27-presale .swiper-horizontal .speakers__item:hover .figure1 .speakers__figure:nth-child(1) {
        border-radius: 45px 45px 0 0;
    }

    .page-template-e27-presale .speakers__item:hover .figure3 .speakers__figure:nth-child(3),
    .page-template-e27-presale .figure1 .speakers__figure:nth-child(3),
    .page-template-e27-presale .swiper-horizontal .speakers__item:hover .figure1 .speakers__figure:nth-child(3) {
        border-radius: 0 0 45px 45px;
    }

    .page-template-e27-presale .speakers__item:hover .circle .speakers__figure {
        border-radius: 45px;
    }

    .page-template-e27-presale .speakers__position {
        font-size: 16px;
    }
}

@media (max-width: 1279px) {
    .page-template-e27-presale .speakers__title {
        font-size: 52px;
    }

    .page-template-e27-presale .speakers__item {
        max-width: 254px;
        padding: 24px;
    }

    .page-template-e27-presale .speakers__name {
        font-size: 28px;
        margin-top: 26px;
    }

    .page-template-e27-presale .speakers__item:hover .figure2 .speakers__figure:nth-child(1) {
        border-radius: 39px 39px 0 0;
    }

    .page-template-e27-presale .speakers__item:hover .figure2 .speakers__figure:nth-child(2) {
        border-radius: 0 0 39px 39px;
    }

    .page-template-e27-presale .speakers__item:hover .figure3 .speakers__figure:nth-child(1),
    .page-template-e27-presale .figure1 .speakers__figure:nth-child(1),
    .page-template-e27-presale .swiper-horizontal .speakers__item:hover .figure1 .speakers__figure:nth-child(1) {
        border-radius: 39px 39px 0 0;
    }

    .page-template-e27-presale .speakers__item:hover .figure3 .speakers__figure:nth-child(3),
    .page-template-e27-presale .figure1 .speakers__figure:nth-child(3),
    .page-template-e27-presale .swiper-horizontal .speakers__item:hover .figure1 .speakers__figure:nth-child(3) {
        border-radius: 0 0 39px 39px;
    }

    .page-template-e27-presale .speakers__item:hover .circle .speakers__figure {
        border-radius: 39px;
    }
}

@media (max-width: 1023px) {
    .page-template-e27-presale .d-md-none {
        display: none;
    }
    .page-template-e27-presale .speakers__title {
        font-size: 42px;
    }

    .page-template-e27-presale .speakers__item {
        max-width: 212px;
        padding: 16px;
        border-radius: 16px;
    }

    .page-template-e27-presale .speakers__name {
        font-size: 24px;
        margin-top: 16px;
    }
}

@media (max-width: 767px) {
    .page-template-e27-presale .speakers__title {
        max-width: 100%;
        font-size: 38px;
        padding: 0 24px;
    }

    .page-template-e27-presale .speakers__item {
        max-width: 251px;
        padding: 24px;
        border-radius: 32px;
    }

    .page-template-e27-presale .speakers__name {
        font-size: 28px;
        margin-top: 24px;
    }

    .page-template-e27-presale .speakers__item:hover .figure2 .speakers__figure:nth-child(1) {
        border-radius: 45px 45px 0 0;
    }

    .page-template-e27-presale .speakers__item:hover .figure2 .speakers__figure:nth-child(2) {
        border-radius: 0 0 45px 45px;
    }

    .page-template-e27-presale .speakers__item:hover .figure3 .speakers__figure:nth-child(1),
    .page-template-e27-presale .figure1 .speakers__figure:nth-child(1),
    .page-template-e27-presale .swiper-horizontal .speakers__item:hover .figure1 .speakers__figure:nth-child(1) {
        border-radius: 45px 45px 0 0;
    }

    .page-template-e27-presale .speakers__item:hover .figure3 .speakers__figure:nth-child(3),
    .page-template-e27-presale .figure1 .speakers__figure:nth-child(3),
    .page-template-e27-presale .swiper-horizontal .speakers__item:hover .figure1 .speakers__figure:nth-child(3) {
        border-radius: 0 0 45px 45px;
    }

    .page-template-e27-presale .speakers__item:hover .circle .speakers__figure {
        border-radius: 45px;
    }

    .page-template-e27-presale .speakers__arrows {
        gap: 16px;
    }
}

.page-template-e27-presale .speakers__item:hover .figure1 .speakers__figure {
    border-radius: 100px !important;
}

@media (max-width: 1023px) {
    .e27-spot--pricing .e27-spot__wrap,
    .e27-spot--form .e27-spot__wrap {
        flex-direction: column;
        align-items: center;
    }

    .e27-spot--pricing .e27-spot__wrap {
        gap: 40px;
    }

    .e27-spot--pricing .e27-spot__info,
    .e27-spot--form .e27-spot__info {
        width: 100%;
    }

    .e27-spot--form .e27-spot__info {
        gap: 24px;
    }
    .e27-spot__aside {
        width: 100%;
    }
    .e27-spot__form {
        width: 100%;
        max-width: 630px;
        margin: auto;
        height: 963px;
    }
}

@media (max-width: 767px) {
    .e27-hero {
        height: 515px;
        align-items: flex-start;
        margin-top: 52px;
    }

    .e27-hero__media::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 62.04%, #000 100%);
    }

    .e27-hero__container {
        padding: 231px 24px 0;
    }

    .e27-hero__content {
        align-items: center;
        text-align: center;
    }

    .e27-hero__title {
        order: 1;
        font-size: 39px;
        line-height: 1.1;
    }

    .e27-hero__meta {
        order: 2;
        font-size: 18px;
        line-height: 1.3;
    }

    .e27-hero__divider {
        display: none;
    }

    .e27-hero__location {
        display: block;
        font-weight: 400;
    }

    .e27-hero__cta {
        order: 3;
        margin-top: 10px;
    }

    /* Pricing mode */

    .e27-spot--pricing .e27-spot__wrap {
        gap: 18px;
        padding: 40px 17px;
    }

    .e27-spot--pricing .e27-spot__info {
        max-width: 295px;
        padding-bottom: 16px;
    }

    .e27-spot--pricing .e27-spot__title {
        font-size: 40px;
    }

    .e27-spot--pricing .e27-spot__text {
        font-weight: 400;
        font-size: 18px;
        line-height: 1.6;
        letter-spacing: 0;
    }

    /* Form mode: the form opens in a popup */

    .e27-spot--form .e27-spot__wrap {
        padding: 30px 24px 60px;
    }

    .e27-spot--form .e27-spot__info {
        align-items: center;
        gap: 32px;
        text-align: center;
    }

    .e27-spot--form .e27-spot__head {
        gap: 20px;
    }

    .e27-spot--form .e27-spot__title {
        font-size: 52px;
        line-height: 1.13;
    }

    .e27-spot--form .e27-spot__aside {
        display: none;
    }

    .e27-spot__open {
        display: flex;
    }

    /* On mobile the privacy text is shown inside the popup instead */
    .e27-spot__info .e27-spot__privacy {
        display: none;
    }
}

/* SECTION SPACING
   Location-page spacing depends on its own section order (.products + .speakers, .l-sponsors + .blog, ...),
   so vertical paddings are set explicitly here to match the pre-sale design. */

.page-template-e27-presale .watch {
    padding: 60px 0 144px;
}

.page-template-e27-presale .speakers {
    padding: 60px 0;
}
.page-template-e27-presale .headliners {
    padding: 91px 0 60px;
}
@media (min-width: 1024px) {
    .page-template-e27-presale .headliners {
        padding: 60px 0 60px;
    }
}
/* Logo rows sit in 109px containers in the design, so the gap below the last row is 89px */
.page-template-e27-presale .l-sponsors {
    padding: 60px 0 89px;
}

/* .ai-edge overlaps the previous section by 70px */
.page-template-e27-presale .blog {
    margin-top: 0;
    padding: 61px 0 103px;
}

.page-template-e27-presale .blog-container {
    padding-top: 0;
    padding-bottom: 0;
}
.blog-container {
    gap: 16px;
}
.blog-items {
    padding-top: 34px;
}

/* Desktop (1920 and 1440 designs) */
@media (min-width: 1440px) {
    .page-template-e27-presale .headliners__right {
        flex: none;
        width: 634px;
    }

    .page-template-e27-presale .headliners__img {
        height: 220px;
        object-fit: cover;
    }

    .page-template-e27-presale .speakers__name {
        margin-top: 24px;
    }
}

/* 1440 design */
@media (max-width: 1919px) {
    .page-template-e27-presale .watch {
        padding-bottom: 78px;
    }

    .page-template-e27-presale .blog {
        padding-bottom: 100px;
        padding-top: 60px;
    }
}
@media (max-width: 1279px) {
    .page-template-e27-presale .watch {
        padding: 60px 0 80px;
    }

    .page-template-e27-presale .blog {
        padding-bottom: 123px;
        padding-top: 59px;
    }
}

@media (max-width: 767px) {
    .page-template-e27-presale .watch {
        padding: 30px 0 40px;
    }

    .page-template-e27-presale .l-sponsors {
        padding: 67px 0 89px;
    }

    .page-template-e27-presale .blog {
        padding: 22px 0 94px;
    }
}
@media (max-width: 1279px) {
    .page-template-e27-presale .headliners__title {
        font-size: 42px;
        margin-top: -32px;
    }
    .page-template-e27-presale .l-sponsors {
        padding: 26px 0 89px;
    }
}
@media (max-width: 767px) {
    .page-template-e27-presale .l-sponsors {
        padding: 89px 0 89px;
    }
}
.page-template-e27-presale .headliners__bottom {
    background: #fff;
}
.page-template-e27-presale .headliners__name {
    color: #000;
}
.page-template-e27-presale .headliners__description {
    color: #000;
}
/* HEADER CTA: width follows the label (design: 171px for "Get presale tickets") */
.page-template-e27-presale .header-right-hand .blue-bubble {
    width: auto;
    padding: 0 24px;
    white-space: nowrap;
}

.page-template-e27-presale .header-right-hand {
    margin-left: 30px;
}
.page-template-e27-presale #menu-e27-pre-sale {
    padding-left: 22px;
    gap: 8px;
}
.page-template-e27-presale .header-elevate__container {
    max-width: 1308px;
}
@media (max-width: 1439px) {
    .page-template-e27-presale .header-elevate__container {
        padding: 0 20px;
    }
}
@media (max-width: 1259px) {
    .page-template-e27-presale .header-elevate__container {
        padding: 0 47px;
    }
}