@import url('./reset.css');
@import url('./webfonts.css');
@import url('./social.css');
@import url('./sharing.css');
@import url('./footer.css');
@import url('./nav.css');
@import url('./menu-button.css');
@import url('./post.css');
@import url('./about.css');

/* @import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&family=IM+Fell+English:ital@0;1&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');


:root {
    --font-sans: 'Open Sans', Arial, sans-serif;
    /* --font-serif: "1592GLCGaramondNormal", Arial, sans-serif; */
    --font-serif: "IM Fell English", Arial, serif;
    --font-secondary-serif: "Crimson Text", Arial, serif;
    --font-regular: "RestoraNeueRegular", Arial, sans-serif;
    --font-display: "RestoraNeueBold", Arial, sans-serif;
    --font-italic: "RestoraNeueItalic", Arial, sans-serif;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 220px;
}


body {
   --secondary-accent: #aa9a9b;
}

html, body {
    height: 100%;
    /* scroll-snap-type: y mandatory; */
}

.no-scroll {
    overflow: hidden;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    /* filter: opacity(80%); */
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: center;
    background-position-y: top;
    /* Enable scroll snapping to this section */
    /* scroll-snap-align: start; */
}

.hero .gradient-container {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgb(0,0,0);
    background: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0, rgba(0, 0, 0, 0) 100px),
        linear-gradient(0deg, rgba(0, 0, 0, 0.8) 18%, rgba(0, 0, 0, 0) 48%);
}

.hero h2 {
    font-family: var(--font-display);
    text-transform: uppercase;
    position: absolute;
    top: max(120px,12%);
    left: 120px;
    font-size: max(4.2rem,8vw);
    width: 500px;
    filter: drop-shadow(0 0 0.4rem #000);
}

.hero .video_container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero .video_container .video_container_center {
    height: 100%;
    width: 100%;
    padding-top: 25%;
}

.hero .video_container .video_container_iframe_wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    width: 85%;
    margin: 0 auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.hero .video_container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero img,
.hero video {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    min-height: 50%;
    min-width: 50%;
}

.hero video {
    filter: brightness(150%);
    opacity: 40%;
}

.hero__semi__inner {
    background-size: cover;
    background-repeat: no-repeat;
    background-position-y: top;
    background-position-x: center;
    transition: filter 0.12s ease-in-out;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.hero__semi__inner:hover {
    filter: brightness(0.65);
}

.hero .hero__semi__inner__content {
    height: inherit;
    position: absolute;
    overflow: hidden;
    padding: 220px 90px;
    color: #fff;
    max-width: 900px;
    pointer-events: none;
    filter: drop-shadow(0 0 0.75rem rgba(0,0,0,1));
}

.hero .hero__semi__inner__content h1 {
    font-size: 6.25rem;
    font-family: var(--font-display);
    font-weight: 500;
    margin-bottom: 30px;
}

.hero .hero__semi__inner__content p {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    line-height: normal;
}

.hero .hero__semi__inner__content span {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 30px;
    /* color: var(--secondary-accent); */
}

@media only screen and (max-width: 710px) {
    .hero .hero__semi__inner__content {
        padding: 0 15px;
        top: 20%;
    }
    .hero .hero__semi__inner__content h1 {
        font-size: 4rem;
    }
    .hero .hero__semi__inner__content p {
        font-size: 1.35rem;
        line-height: 2rem;
    }

}

.scroll-arrow {
    position: absolute;
    top: 92%;
    width: 30px;
    cursor: pointer;
    left: calc(50% - 15px);
}

.bounce {
    animation: bounce 2s infinite;
}

.articles {
    width: 100%;
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 15px 20px 15px;
    position: relative;
    margin-bottom: 250px;
}

.card__container {
    width: 100%;
    aspect-ratio: 1/1;
    background-position-y: top;
    background-position-x: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    position: relative;
    opacity: 0;
    transform: translateY(120px);
    transition: all 0.45s ease-out;
}

.card__container a {
    text-decoration: none;
}

.card__container .card__overlay {
    padding: 1.5rem;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: rgba(0,0,0,.38);
    transition: background-color 0.125s ease-in-out;
}

.card__container .card__overlay:hover {
    background-color: rgba(0,0,0,0.125);
}

.card__container .card__overlay > * {
    filter: drop-shadow(0 0 0.25rem #000);
}

.card__container span.card__category {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
}

.card__container span.card__author {
    position: absolute;
    bottom: 15px;
    font-family: var(--font-serif);
    font-size: 1.75rem;
}

.card__container h2.card__title {
    font-family: var(--font-display);
    font-size: 10vw;
    margin-top: 30px;
    text-transform: uppercase;
}

.card__container::before, .card__container::after {
    box-sizing: border-box;
}

.card__container.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------------------------  SCROLLBAR  ------------------------------- */

::-webkit-scrollbar {
    width: 18px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-accent)

}


/* ---------------------------  ANIMATIONS  ------------------------------- */

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}





/* ---------------------------  BREAK POINTS  ------------------------------- */


/* removed empty 850px media block */


 /* mobile-specific styling */

@media only screen and (max-width: 710px) {
    .hero h2 {
        left: 15px;
        top: 55%;
        width: calc(100% - 15px);
        font-size: 10vw;
    }

    .articles {
        grid-template-columns: 100%;
    }

    .scroll-arrow {
        top: 78%;
    }

    .hero.semi__hero h1 {
        left: 39px;
        font-size: 6rem;
    }

}

@media only screen and (min-width:711px) {
    .card__container span.card__category {
        font-size: 1.4rem;
    }
    .card__container h2.card__title {
        font-size: 2rem;
        margin-top: 20px;
    }
}


@media only screen and (min-width: 990px) {
    .articles {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (min-width: 1300px) {
    .card__container span.card__category {
        font-size: 1.4rem;
    }
    .card__container h2.card__title {
        font-size: 3rem;
        margin-top: 30px;
    }
}


/* ---------------------------  KOENIG EDITOR CLASSES  ------------------------------- */
/* Scroll snapping container (limit scope to main content) */
#site-main {
    /* scroll-snap-type: y mandatory; */
}

/* Ensure the next section also has a snap point */
.post-wrapper {
    /* scroll-snap-align: start; */
}

/* Required CSS classes for wide and full-width images in Ghost Koenig editor */
.kg-width-wide {
    width: 85vw;
    min-width: 100%;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}


/* Responsive adjustments */
@media only screen and (max-width: 710px) {
    .kg-width-wide {
        width: 100vw;
    }
}

/* (Lightbox CSS removed by request) */

/* ---------------------------  LIGHTBOX  ------------------------------- */

/* YouTube embed placeholder styling */
.yt-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
}

.yt-embed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.2s ease-in-out;
}

.yt-embed:hover img {
    filter: brightness(0.8);
}

.yt-embed__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 2;
    pointer-events: none; /* Let the parent handle clicks */
}

.yt-embed__play:hover {
    background: rgba(255, 0, 0, 0.9);
}

.yt-embed__play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 12px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* Ensure YouTube embeds work with lightbox system */
.yt-embed.js-video-lightbox {
    cursor: pointer;
}

.yt-embed.js-video-lightbox:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease-in-out;
}

/* Mobile-specific adjustments */
@media only screen and (max-width: 710px) {
    .yt-embed {
        margin: 20px 0;
    }
    
    .yt-embed__play {
        width: 56px;
        height: 40px;
    }
    
    .yt-embed__play::before {
        border-left: 10px solid #fff;
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
    }
    
    /* Ensure touch targets are large enough on mobile */
    .yt-embed.js-video-lightbox {
        min-height: 200px;
    }
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.lightbox-overlay.visible {
    opacity: 1;
}

.lightbox-content {
    width: min(1200px, 90vw);
    aspect-ratio: 16 / 9;
}

.lightbox-iframe-wrap {
    width: 100%;
    height: 100%;
}

.lightbox-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: #fff;
    background: transparent;
    border: 0;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

/* Lightbox thumbnail styling for .js-video-lightbox elements */
.lightbox-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    display: block;
    filter: brightness(0.65);
    transition: filter 0.125s ease-in-out;
    margin-bottom: 80px;
    margin-top: 40px;
}

.lightbox-thumbnail:hover {
    filter: brightness(1);
}

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

.lightbox-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lightbox-play-button:hover {
    background: rgba(255, 0, 0, 0.9);
}

.lightbox-play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 12px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

