.hero-section {
    width: 100%;
    height: 100%;
    min-height: 100svh;
    display: flex;
    position: relative;
    overflow: hidden;
}

.background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.background-image figure,
.background-image video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.background-image video {
    display: block;
}

/* Fade-in for hero video to hide the poster flash */
.hero-video {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(.2,.9,.2,1);
    will-change: opacity;
}

.hero-video.visible {
    opacity: 1;
}

.hero-content {
    z-index: 1;
    flex-flow: column;
    justify-content: flex-end;
    height: 100%;
    display: flex;
    position: relative;
}

.hero-content-inner {
    justify-content: space-between;
    align-items: flex-end;
    display: flex;
}

.hero-text-content {
    margin-bottom: max(26px, calc(1.8vw * var(--scale)));
}

html[data-primary-font="Thunder"] .heading-1-wrapper {
    margin-bottom: 0px;
}

.heading-1-wrapper {
    display: block;
    text-decoration: none;
    max-width: max(580px, calc(40.03vw * var(--scale)));
    margin-bottom: max(16px, calc(1.11vw * var(--scale)));
}

.post-summary-wrapper {
    max-width: max(445px, calc(30.9vw * var(--scale)));
}

.hero-button-wrapper {
    margin-bottom: max(20px, calc(1.39vw * var(--scale)));
}

.bracket-button-wrapper,
.arrow-button-wrapper {
    display: none;
}

.arrow-button .arrow-button-text,
.arrow-button .arrow-button-icon {
    will-change: transform;
    transition: transform 0.6s var(--ease-transition);
}

.arrow-button:hover .arrow-button-text.main {
    transform: translateY(110%);
}

.arrow-button:hover .arrow-button-text.absolute {
    transform: translateY(0%);
}

.arrow-button:hover .arrow-button-icon.main {
    transform: translateX(110%);
}

.arrow-button:hover .arrow-button-icon.absolute {
    transform: translateX(0%);
}

.hero-button-wrapper[data-button-type="Bracket Desktop/Solid Mobile"] .bracket-button-wrapper,
.hero-button-wrapper[data-button-type="Bracket"] .bracket-button-wrapper,
.hero-button-wrapper[data-button-type="Solid"] .arrow-button-wrapper {
    display: block;
}

.hero-center {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    text-align: center;
    padding-top: 8vh;
}

.hero-center .hero-content,
.hero-center .hero-content-inner,
.hero-center .hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-center .post-summary-wrapper {
    max-width: max(468px, calc(32.5vw * var(--scale)));
}


.hero-center .hero-button-wrapper {
    margin-bottom: 0px;
}

.heading-1-wrapper[data-content-length="Wide"] {
    max-width: max(900px, calc(62.5vw * var(--scale)));
}

.heading-1-wrapper[data-content-length="Full Width"] {
    max-width: 100%;
}

.author-socials {
    margin-bottom: max(26px, calc(1.8vw* var(--scale)));
}

/* Mission Statement Section */
.heading-large {
    font-size: max(36px, calc(2.5vw * var(--scale))) !important;
}

.text-large {
    font-size: max(18px, calc(1.25vw * var(--scale))) !important;
}

.mission-statement-section {
    margin-top: 2cm;
}

.mission-statement-inner {
    display: flex;
    gap: max(40px, calc(2.8vw * var(--scale)));
    align-items: flex-start;
}

.mission-statement-text-column {
    flex: 1;
    min-width: 0;
}

.mission-statement-text p {
    margin-bottom: max(24px, calc(1.67vw * var(--scale)));
}

.mission-statement-text strong {
    font-weight: 900;
}

.mission-statement-image-column {
    flex: 1;
    min-width: 0;
}

.mission-statement-image {
    width: 100%;
    height: auto;
    border-radius: max(8px, calc(0.55vw * var(--scale)));
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 1080px) {
    .mission-statement-inner {
        flex-direction: column;
        gap: max(24px, calc(1.67vw * var(--scale)));
    }
    
    .mission-statement-image-placeholder {
        aspect-ratio: 16/9;
    }
}

.hero-section-no-image .medium-text,
.hero-section-no-image h1,
.hero-section-no-image p.paragraph,
.hero-section-no-image .social {
    color: var(--text-color)
}

.hero-section-no-image .social {
    border: 1px solid var(--text-color);
}

.hero-section-no-image .social:hover {
    color: var(--background-color);
    background-color: var(--text-color);
}

.hero-section-no-image .hero-section {
    min-height: auto;
    padding-top: max(168px, calc(11.67vw* var(--scale)));
}

.hero-section-no-image .heading-1-and-bio {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-section-no-image .hero-content-inner {
    flex-direction: column;
    align-items: flex-start;
}

.hero-section-no-image .hero-text-content {
    width: 100%;
    margin-bottom: max(18px, calc(1.26vw * var(--scale)));
}

html[data-primary-font="Thunder"] .hero-section-no-image .hero-text-content {
    margin-bottom: max(9px, calc(0.63vw * var(--scale)));
}

.hero-section-no-image .post-summary-wrapper {
    margin-bottom:  max(calc(12px * var(--heading-font-line-height-scale)), calc(0.83vw * var(--scale) * var(--heading-font-line-height-scale)));
}

.hero-section-no-image .author-posts {
    padding-top: 0px !important;
}

.hero-section-no-image .grid {
    padding-top: max(36px, calc(2.5vw* var(--scale)));
    border-top: 1px solid var(--text-color);
}

@media screen and (max-width: 1080px) {
    .hero-content-inner {
        flex-flow: column;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    html[data-primary-font="Thunder"] .heading-1-wrapper {
        margin-bottom: 2px;
    }

    .heading-1-wrapper {
        max-width: 580px;
        margin-bottom: 12px;
    }

    .hero-text-content {
        margin-bottom: 22px;
    }

    .hero-button-wrapper {
        margin-bottom: 26px;
    }

    .hero-button-wrapper[data-button-type="Bracket Desktop/Solid Mobile"] .arrow-button-wrapper {
        display: block;
    }

    .hero-button-wrapper[data-button-type="Bracket Desktop/Solid Mobile"] .bracket-button-wrapper {
        display: none;
    }  

    .arrow-button:hover .arrow-button-text.main {
        transform: translateY(0%);
    }
    
    .arrow-button:hover .arrow-button-text.absolute {
        transform: translateY(-110%);
    }
    
    .arrow-button:hover .arrow-button-icon.main {
        transform: translateX(0%);
    }
    
    .arrow-button:hover .arrow-button-icon.absolute {
        transform: translateX(-110%);
    }

    .author-hero .hero-text-content {
        margin-bottom: 16px;
    }

    .hero-section-no-image .social:hover {
        color: var(--text-color);
        background-color: var(--background-color);
    }
    
    .hero-section-no-image .hero-section {
        padding-top: 148px;
    }
    
    .hero-section-no-image .heading-1-and-bio {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-section-no-image .hero-content-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    html[data-primary-font="Thunder"] .hero-section-no-image .post-summary-wrapper {
        margin-bottom: 6px;
        margin-top: 0px;
    }

    .hero-section-no-image .post-summary-wrapper {
        margin-bottom: 0px;
        margin-top: 12px;
    }
    
    .hero-section-no-image .author-socials {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 767px) { 
    .hero-text-content {
        margin-bottom: 18px;
    }

    .hero-button-wrapper {
        margin-bottom: 24px;
    }

    .author-socials {
        margin-bottom: 22px;
    }

    .author-hero .hero-text-content {
        margin-bottom: 12px;
    }

    .hero-section-no-image .hero-section {
        padding-top: 128px;
    }
    
    html[data-primary-font="Thunder"] .hero-section-no-image .post-summary-wrapper {
        margin-bottom: 3px;
        margin-top: 0px;
    }

    .hero-section-no-image .post-summary-wrapper {
        margin-bottom: 0px;
        margin-top: 6px;
    }
    
    .hero-section-no-image .author-socials {
        margin-bottom: 28px;
    }
}

/* Members Gallery Section */
.members-gallery-section {
    padding: max(80px, calc(5.5vw * var(--scale))) 0;
}

.members-gallery-content {
    display: flex;
    flex-direction: column;
    gap: max(40px, calc(2.8vw * var(--scale)));
    align-items: center;
    text-align: center;
}

.subtitle-wrapper.centered {
    justify-content: center;
    width: 100%;
}

.members-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: max(30px, calc(2vw * var(--scale)));
    align-items: center;
    justify-items: center;
}

.members-gallery-wrapper {
    width: 100%;
    padding-left: 20%;
    padding-right: 20%;
}

.member-logo-item {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, calc(0.8vw * var(--scale)));
    background-color: transparent;
    border: none;
    border-radius: max(8px, calc(0.55vw * var(--scale)));
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.member-logo-item:hover {
    border-color: transparent;
    box-shadow: 5px 5px 18px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.member-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.member-logo-item:hover .member-logo {
    filter: grayscale(0%);
}

@media screen and (max-width: 1080px) {
    .members-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    

/* Events Section */
.events-section {
    padding: max(30px, calc(2.5vw * var(--scale))) 0;
    margin-top: 0;
    margin-bottom: 0;
}

.events-content {
    display: flex;
    flex-direction: column;
    gap: max(18px, calc(1.2vw * var(--scale)));
}

.events-section .subtitle.heading-large {
    font-family: var(--font1);
    font-weight: 700;
    color: var(--text-color);
    text-transform: none;
    font-size: max(34px, calc(2.3vw * var(--scale)));
    margin-bottom: max(18px, calc(1vw * var(--scale)));
}

.events-list .event-item {
    margin-bottom: max(24px, calc(1.5vw * var(--scale)));
}

.events-list .event-item:last-child {
    margin-bottom: 0;
}

.events-list .event-item h3 {
    margin: 0 0 10px 0;
    font-weight: 700;
    font-size: max(20px, calc(1vw * var(--scale)));
    line-height: 120%;
    text-transform: none;
}

.events-list .event-item p {
    margin: 0 0 16px 0;
}

/* Reduce any top spacing on featured posts after events */
.featured-posts {
    margin-top: 0;
    padding-top: 0;
}
    .members-gallery-wrapper {
        padding-left: 15%;
        padding-right: 15%;
    }
    
    .member-logo-item {
        height: 80px;
    }
}

/* Events Section - global styles */
.events-section {
    padding: max(30px, calc(2.5vw * var(--scale))) 0;
    margin-top: 0;
    margin-bottom: 0;
}

.events-content {
    display: flex;
    flex-direction: column;
    gap: max(28px, calc(1.5vw * var(--scale)));
}

.events-section .subtitle.heading-large {
    font-family: var(--font1);
    font-weight: 700;
    color: var(--text-color);
    text-transform: none;
    font-size: max(34px, calc(2.3vw * var(--scale)));
    margin-bottom: max(18px, calc(1vw * var(--scale)));
}

.events-list .event-item {
    margin-bottom: max(36px, calc(2.2vw * var(--scale)));
}

.events-list .event-item:last-child {
    margin-bottom: 0;
}

.events-list .event-item h3,
.events-list .event-item h3 strong,
.events-list .event-item h3 a {
    margin: 0 0 10px 0;
    font-weight: 700;
    font-size: max(22px, calc(1vw * var(--scale)));
    line-height: 120%;
    text-transform: none;
}

.events-list .event-item p {
    margin: 0 0 20px 0;
}

/* Reduce any top spacing on featured posts after events */
.featured-posts {
    margin-top: 0;
    padding-top: 0;
}

@media screen and (max-width: 767px) {
    .members-gallery-section {
        padding: max(60px, calc(4vw * var(--scale))) 0;
    }
    
    .members-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: max(20px, calc(1.4vw * var(--scale)));
    }
    
    .members-gallery-wrapper {
        padding-left: 10%;
        padding-right: 10%;
    }
    
    .member-logo-item {
        height: 60px;
    }
}