.event-hero {
position: relative;
min-height: 720px;
display: flex;
flex-direction: column;
margin-top: calc(var(--nav-h) * -1);
overflow: hidden;
}
.event-hero-bg {
position: absolute;
inset: 0;
z-index: 0;
overflow: hidden;
}
.event-hero-bg::after {
content: "";
position: absolute;
inset: 0;
background: rgba(0, 0, 0, .45);
pointer-events: none;
}
.event-hero-bg__img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
object-position: center 30%;
filter: saturate(1.05);
}
.event-hero-content {
position: relative;
z-index: 1;
flex: 1;
width: 100%;
max-width: var(--max-w);
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: calc(var(--nav-h) + 40px) clamp(24px, 5vw, 80px) 88px;
opacity: 0;
}
.event-hero-content > * {
opacity: 0;
transform: translateY(18px);
}
.event-hero.is-revealed .event-hero-content {
opacity: 1;
transition: opacity .3s ease;
}
.event-hero.is-revealed .event-hero-content > * {
animation: hero-fade-up .7s ease forwards;
}
.event-hero.is-revealed .event-hero-title   { animation-delay: .15s; }
.event-hero.is-revealed .event-hero-meta    { animation-delay: .30s; }
.event-hero.is-revealed .event-hero-desc    { animation-delay: .45s; }
.event-hero.is-revealed .event-hero-content .btn-primary,
.event-hero.is-revealed .event-hero-content .gallery-btn { animation-delay: .60s; }
@keyframes hero-fade-up {
from { opacity: 0; transform: translateY(18px); }
to   { opacity: 1; transform: translateY(0); }
} .event-hero-bg__img {
opacity: 0;
animation: hero-bg-fade .8s ease forwards;
}
@keyframes hero-bg-fade {
to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
.event-hero-content,
.event-hero-content > *,
.event-hero-bg__img {
opacity: 1 !important;
transform: none !important;
animation: none !important;
}
}
.event-hero-title {
margin: 0 0 14px;
font-family: inherit;
font-weight: 600;
font-size: clamp(32px, 3.35vw, 52px);
line-height: 1.12;
color: var(--white);
}
.event-hero-meta {
margin: 0 0 18px;
font-family: inherit;
font-weight: 600;
font-size: clamp(15px, 1.3vw, 18px);
color: var(--white);
}
.event-hero-desc {
margin: 0 0 30px;
max-width: 920px;
color: var(--white);
}
.event-hero-content .btn-primary {
align-self: center;
border: none;
cursor: pointer;
font-family: inherit;
max-width: 260px;
}
.event-hero-content .gallery-btn {
padding: 10px 72px;
border: 1px solid var(--white);
color: var(--white);
background: transparent;
} .info-section {
width: min(var(--max-w), 100% - 40px);
margin: 0 auto;
color: var(--text);
padding: var(--section-space) 0;
}
.info-section .events__heading {
max-width: none;
} .dots-row {
height: clamp(90px, 40vw, 146px);
background-color: var(--bg);
background-image: url(//runners.staging-sc.com/wp-content/themes/runners/assets/images/race-dots.svg);
background-repeat: no-repeat;
background-size: min(var(--max-w), 100% - 40px);
background-position: center;
margin: 20px 0;
} .feature-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
border: 1px solid var(--border);
margin-top: 28px;
}
.feature-card {
padding: 16px;
border-left: 1px solid var(--border);
}
.feature-card:first-child {
border-left: none;
}
.feature-icon {
display: block;
}
.feature-icon img,
.feature-card > img {
width: auto;
height: 62px;
display: block;
}
.feature-card h3 {
margin: 48px 0 8px;
font-family: inherit;
font-size: clamp(28px, 2vw, 36px);
font-weight: 600;
text-transform: uppercase;
letter-spacing: -.01em;
color: var(--text);
}
.feature-card p {
margin: 0;
color: var(--muted);
} .race-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
border: 1px solid var(--border);
margin-top: 28px;
}
.race-card {
padding: 28px 32px 32px;
border-left: 1px solid var(--border);
}
.race-card:first-child {
border-left: none;
}
.race-distance {
display: flex;
align-items: center;
gap: 10px;
font-family: inherit;
font-weight: 400;
font-size: clamp(28px, 6vw, 56px);
color: var(--primary);
}
.race-distance img {
width: 54px;
height: 48px;
flex-shrink: 0;
}
.race-underline {
width: 104px;
height: 5px;
background: var(--primary);
margin: 16px 0 18px;
}
.race-card h3 {
margin: 0 0 10px;
font-family: inherit;
font-size: clamp(20px, 2vw, 24px);
font-weight: 600;
text-transform: uppercase;
letter-spacing: -.01em;
color: var(--text);
}
.race-desc {
margin: 0 0 18px;
color: var(--muted);
}
.race-specs {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
gap: 8px;
}
.race-specs li {
position: relative;
padding-left: 18px;
color: var(--muted);
}
.race-specs li::before {
content: "•";
position: absolute;
left: 4px;
top: 0;
color: var(--muted);
}
.race-specs li strong {
font-weight: 600;
} .route-map img {
width: 100%;
display: block;
aspect-ratio: 1440 / 620;
object-fit: cover;
} .sponsor-row {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 28px;
margin-top: 32px;
}
.sponsor-row img {
height: auto;
width: 100%;
max-width: 182px;
object-fit: contain;
} .rules-section {
padding-top: 56px;
}
.rules-block {
max-width: 808px;
margin: 0 auto;
text-align: center;
}
.rules-heading {
display: flex;
align-items: center;
justify-content: center;
gap: 14px;
margin: 0 0 24px;
font-family: inherit;
font-weight: 600;
text-transform: uppercase;
letter-spacing: -.03em;
font-size: clamp(32px, 2.6vw, 40px);
color: var(--text);
}
.rules-heading img {
width: 30px;
height: 30px;
flex-shrink: 0;
}
.rules-block .btn-more {
display: inline-block;
cursor: pointer;
font-family: inherit;
} .rules-excerpt {
margin: 0 0 24px;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
}
.rules-excerpt p {
margin: 0 0 12px;
color: var(--muted);
} .event-modal {
position: fixed;
inset: 0;
z-index: 9999;
display: none;
}
.event-modal.is-open {
display: block;
}
.event-modal__overlay {
position: absolute;
inset: 0;
background: rgba(6, 15, 28, .6);
}
.event-modal__dialog {
position: relative;
z-index: 1;
width: min(808px, calc(100% - 48px));
max-height: min(80vh, 720px);
margin: 8vh auto 0;
background: var(--bg);
border-radius: var(--radius-md);
padding: 40px clamp(24px, 4vw, 48px) 48px;
overflow-y: auto;
box-shadow: 0 24px 60px rgba(6, 15, 28, .25);
}
.event-modal__dialog--wide {
width: min(917px, calc(100% - 48px));
max-height: min(88vh, 860px);
padding: 40px clamp(20px, 3vw, 40px) 48px;
}
.event-modal__close {
position: absolute;
top: 20px;
right: 20px;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid var(--border);
border-radius: 50%;
background: var(--white);
color: var(--text);
cursor: pointer;
}
.event-modal__close svg {
width: 16px;
height: 16px;
}
.event-modal__title {
display: flex;
align-items: center;
justify-content: center;
gap: 14px;
margin: 0 0 24px;
font-family: inherit;
font-weight: 600;
text-transform: uppercase;
letter-spacing: -.03em;
font-size: clamp(22px, 2.6vw, 32px);
color: var(--text);
}
.event-modal__title img {
width: 30px;
height: 30px;
flex-shrink: 0;
}
.event-modal__content p {
margin: 0 0 16px;
color: var(--muted);
}
.event-modal__content p:last-child {
margin-bottom: 0;
} body.event-modal-open {
overflow: hidden;
}
@media (max-width: 640px) {
.event-modal__dialog {
width: calc(100% - 32px);
margin-top: 10vh;
padding: 32px 20px 36px;
}
} .faq-section {
width: min(var(--max-w), 100% - 40px);
margin: 0 auto;
padding: var(--section-space) 0;
} .gallery-section {
width: min(var(--max-w), 100% - 40px);
margin: 0 auto;
padding: var(--section-space) 0;
}
.gallery-head {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 16px;
}
.gallery-toggle {
display: flex;
align-items: center;
background: rgba(255, 123, 0, .12);
border-radius: 999px;
padding: 4px;
gap: 2px;
}
.gallery-toggle button {
border: none;
background: transparent;
font-family: inherit;
font-size: 14px;
font-weight: 600;
color: var(--muted);
padding: 10px 24px;
border-radius: 999px;
cursor: pointer;
transition: background .2s ease, color .2s ease;
}
.gallery-toggle button.active {
background: var(--primary);
color: var(--white);
}
.gallery-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
margin-top: 32px;
}
.gallery-grid img.is-hidden,
.gallery-grid .gallery-video.is-hidden {
display: none;
}
.gallery-more.is-hidden {
display: none;
} .gallery-grid[hidden] {
display: none;
}
.gallery-grid.is-active {
display: grid;
} .gallery-video {
position: relative;
width: 100%;
aspect-ratio: 1 / 1;
overflow: hidden;
cursor: pointer;
background: #000;
}
.gallery-video img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
opacity: .85;
transition: opacity .2s ease;
}
.gallery-video:hover img {
opacity: .65;
}
.gallery-video__play {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 56px;
height: 56px;
border: none;
border-radius: 50%;
background: var(--primary);
color: var(--white);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: transform .2s ease;
}
.gallery-video__play svg {
width: 22px;
height: 22px;
}
.gallery-video:hover .gallery-video__play {
transform: translate(-50%, -50%) scale(1.08);
}
.gallery-video iframe {
width: 100%;
height: 100%;
border: 0;
display: block;
} .gallery-more .btn-more[disabled] {
opacity: .6;
cursor: default;
}
.gallery-grid img {
width: 100%;
aspect-ratio: 1 / 1;
object-fit: cover;
display: block;
}
.gallery-more {
display: flex;
justify-content: center;
margin-top: 36px;
}
.gallery-more .btn-more {
padding: 12px 40px;
} @media (max-width: 900px) {
.feature-grid,
.race-grid {
grid-template-columns: 1fr;
border-left: 1px solid var(--border);
border-right: 1px solid var(--border);
}
.feature-card,
.race-card {
border-left: none;
border-top: 1px solid var(--border);
padding: 24px 22px 28px;
}
.feature-card:first-child,
.race-card:first-child {
border-top: none;
}
.gallery-grid {
gap: 18px;
}
}
@media (max-width: 768px) {
.event-hero {
min-height: 100vh;
}
.event-hero-content {
padding: calc(var(--nav-h-mobile) + 32px) 20px 48px;
}
.rules-section {
padding-top: 44px;
}
.dots-row {
height: 64px;
background-size: calc(100% - 40px) auto;
background-position: center;
}
.route-map img {
aspect-ratio: 4 / 3;
}
}
@media (max-width: 640px) {
.sponsor-row {
gap: 28px 36px;
justify-content: center;
}
.sponsor-row img {
max-width: 70%;
margin: 0 auto;
}
}
@media (max-width: 560px) {
.gallery-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.event-hero-title {
font-size: 27px;
}
.feature-card h3,
.race-card h3 {
font-size: 16px;
}
.rules-heading {
font-size: 22px;
gap: 10px;
}
.route-map img {
aspect-ratio: 1 / 1;
}
}