/* by NAMELESS famous */

:root {
    --nf-red: #c10230;
    --nf-blue: #00245d;
    --nf-light-blue: #b3bdce;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--nf-blue);
}

body {
    font-family: "futura-pt", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--nf-light-blue) url("/themes/damonthayer/assets/images/2025/damonthayer-2025-bg-body.jpg?v=2025-01-24_3") top left / cover no-repeat;
    text-align: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("/themes/damonthayer/assets/images/2025/bg-texture-overlay.png?v=2025-01-24_3") repeat;
    opacity: 0.25;
    pointer-events: none;
}

body.tcc {
    background: var(--nf-light-blue);
}

.page {
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.center-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3em 0;
    position: relative;
    z-index: 1;
    width: 1250px;
    max-width: 90%;
}

h1 {
    font-size: 6rem;
    margin-bottom: 2rem;
    font-weight: 800;
    font-style: italic;
    line-height: 0.8;
    text-transform: uppercase;
    color: var(--nf-red);
    text-shadow: 5px 3.75px white;
    max-width: 500px;
}

h1::after {
    content: '';
    display: block;
    margin: 2rem auto 0;
    width: 50%;
    height: 0.5rem;
    background: var(--nf-red);
}

.logo-grid {
    display: grid;
    gap: 2.5rem;
    width: 1250px;
    max-width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    background: rgba(255, 255, 255, 0.75);
    border-radius: 1em;
    padding: 3em 5em;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.content-section button, .btn {
    background: var(--nf-red);
    border: 0;
    color: #fff;
    padding: 1em 2em;
    font-size: 1.5em;
    margin: 2em auto;
    width: auto;
}

.btn-sm {
    padding: 0.5em 0.75em;
    font-size: 1.25em;
}

.btn-container {
    margin-top: 2em;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--nf-blue);
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--nf-red);
}

.large-links {
    margin-top: 3rem;
}

.large-links a {
    display: inline-block;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--nf-red);
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--nf-red);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.large-links a:hover {
    background: var(--nf-red);
    color: white;
}

.split-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.content-section h1 {
    margin: 0 auto 0.5em;
}

.content-section h1.h1-logo img {
    width: 100%;
}

.content-section h2 {
    color: var(--nf-blue);
    margin-bottom: 2em;
    font-size: 2.25em;
    text-transform: uppercase;
    line-height: 1;
}

.content-section h2 em {
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: .3rem;
    color: var(--nf-red);
}

.content-section .news-section {
    margin: 0 auto;
    max-width: 500px;
    text-align: left;
}

.content-section .news-section h3 {
    font-size: 2em;
    color: var(--nf-red);
}

.content-section .news-section ul {
    padding-left: 1em;
    font-size: 1.25em;
}

.content-section .news-section a {
    color: var(--nf-blue);
    transition: color 0.25s ease;
}

.content-section .news-section a:hover {
    color: var(--nf-red);
}

.content-section.bio {
    display: block;
}

.content-section.bio h2 {
    text-align: left;
    text-transform: none;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.content-section.bio p {
    text-align: left;
    font-size: 1.5em;
    margin-bottom: 1em;
}

.image-section {
    flex: 1;
    position: relative;
}

.image-section .ratio {
    width: 100%;
    height: 100%;
}

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

.news-section h3 {
    margin-bottom: 2rem;
    position: relative;
}

.news-section h3::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    /* margin: 1rem auto 0; */
    width: 4rem;
    height: 0.25rem;
    background: var(--nf-red);
}

.ratio.ratio-1x1 {
    aspect-ratio: 1/1;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 100%;
    padding: 1rem;
}

/* 3 columns on large screens (width 768px and above) */
@media (min-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 2rem;
    }
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.gallery img:hover {
    transform: scale(1.05);
    border: 0.5rem solid var(--nf-red);
}

.footer {
    padding: 3rem 0;
    background: var(--nf-blue);
    color: var(--nf-light-blue);
}

.footer .copyright {
    margin: 0;
    text-transform: uppercase;
    font-size: 0.75rem;
    
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 2rem;
    border-radius: 8px;
    min-width: 300px;
    width: 75%;
    max-width: 1200px;
    height: 90%;
}

.modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal.active {
    display: block;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 25px;
    height: 25px;
}

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal-backdrop.active {
    display: block;
}

@media (max-width: 1350px) {
    h1 {
        margin-top: 2.5em;
    }
}

@media (max-width: 1024px) {
    body {
        background-size: 175%;
    }
    .center-container,
    .logo-grid {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5em;
        border-radius: 0;
    }
    .logo-grid .logo {
        padding: 1em;
    }
    .logo-grid .logo .logo-img {
        max-width: 90%;
    }
    h1 {
        margin-top: 4.5em;
    }
}

@media (max-width: 768px) {
    body {
        background-size: 200%;
    }
    h1 {
        font-size: 4rem;
        text-shadow: 3px 2px white;
        margin-top: 4em;
    }
    .center-container {
        padding: 2em 0;
    }
    .logo-grid {
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        padding: 3em 0.5em;
        margin-bottom: 5em;
    }
    .logo-grid .logo .logo-img {
        max-width: 75%;
    }
    .large-links a {
        margin: 0.5rem 0;
        display: block;
    }
    .split-container {
        flex-direction: column;
        height: auto;
    }
    .content-section {
        height: auto;
        padding: 1.5rem;
    }
}

@media (min-width: 767px) {
    .image-section .ratio {
        position: absolute;
        top: 0;
        left: 0;
    }
}