/* Universal box-sizing for predictable layouts */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,body { height:100%; margin:0; background:#000; }
body {
    height: calc(600lvh); /* 6 tiles → 1 viewport per section */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

#stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100lvh;
    display: block;
}

.content-container {
    position: relative;
}

/* --- MOBILE STYLES (Default: up to 767px) --- */
.content-box-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-box {
    width: 90%;
    max-width: 450px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.5);
    /*background: rgba(0, 0, 0, 0.6);*/
    backdrop-filter: blur(25px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-box .hero-text {
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    line-height: 1.3;
    margin: 0;
    text-transform: uppercase;
}

.content-box h2 {
    font-size: 1.8rem;
    margin: 0.2rem 0 1.2rem 0;
}

.content-box p {
    font-size: 1rem;
    line-height: 1.5;
}

/* --- Poster Row Styles --- */
.poster-row {
    display: grid;
    gap: 1rem;
    align-items: flex-start;
    grid-template-columns: repeat(2, 1fr);
}

.poster-row .poster {
    margin: 0;
}

.poster-row .poster-media {
    aspect-ratio: 5 / 7;
    width: 100%;
    max-width: 329px;
    min-width: 118px;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.poster-row .poster-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.poster-row .poster-media a:hover img {
    transform: scale(1.05);
}

.poster-row .poster figcaption {
    margin-top: 1rem;
    line-height: 1.1;
    font-size: 1rem;
}

.poster-row .poster .subtitle {
    display: inline-block;
    font-size: 0.9rem;
}

/* --- TODO: Better CSS for social media icons --- */
#socialmedia {
    justify-content: space-between;
}
#socialmedia .poster {
    max-width: 25%;
}
#socialmedia a {
    transition: fill 0.3s ease;
}
#socialmedia a:hover {
    fill: #279beb;
}

.hidden-xs {
    display: none;
}

/* --- TABLET STYLES (768px and up) --- */
@media (min-width: 768px) {
    .content-box-wrapper {
        justify-content: flex-end;
    }

    .content-box {
        width: 60%;
        max-width: 500px;
        margin-right: 5%;
    }

    .content-box h2 {
        font-size: 2.2rem;
    }

    .hidden-xs {
        display: block;
    }
}


/* --- SMALL DESKTOP STYLES (1024px and up) --- */
@media (min-width: 1024px) {
    .content-box {
        width: 58%;
        max-width: 620px;
        padding: 10px 40px;
    }
    .content-box .hero-text {
        font-size: 3rem;
    }
    .poster-row {
        /*grid-template-columns: repeat(4, 1fr);*/
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}


/* --- STANDARD DESKTOP STYLES (1366px and up) --- */
@media (min-width: 1367px) {
    .content-box {
        width: 66.66%;
        max-width: 850px;
        margin-right: 5%;
        padding: 10px 40px;
    }
    .content-box .hero-text {
        font-size: 4rem;
        letter-spacing: 4px;
    }
    .content-box h2 {
        font-size: 2.5rem;
    }
    .content-box .text-lg {
        font-size: 1.3rem;
    }
    .content-box p {
        font-size: 1.1rem;
    }
    .poster-row .poster figcaption {
        font-size: 1.3rem;
    }
    .poster-row .poster .subtitle {
        font-size: 1rem;
    }
}


/* --- LARGE DESKTOP STYLES (1920px and up) --- */
@media (min-width: 1920px) {
    .content-box {
        max-width: 1100px;
        margin-right: 10%;
    }
    .content-box .hero-text {
        font-size: 5rem;
        letter-spacing: 4px;
    }
}


.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.header-row h2 {
    margin: 0;
}

.read-more-link {
    text-decoration: none;
}
.read-more {
    line-height: 30px;
    height: 30px;
    text-align: center;
    width: 120px;
    cursor: pointer;
    color: #FFF;
    transition: all 0.3s;
    position: relative;
}
.read-more span {
    transition: all 0.3s;
    text-decoration: none;
    color: black;
    font-family: Roboto, sans-serif;
    font-size: 0.9rem;
}
.read-more::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: all 0.3s;
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-top-style: solid;
    border-bottom-style: solid;
    border-top-color: rgba(255,255,255,0.5);
    border-bottom-color: rgba(255,255,255,0.5);
    transform: scale(0.1, 1);
}
.read-more:hover span {
    letter-spacing: 2px;
    color: white;
}
.read-more:hover::before {
    opacity: 1;
    transform: scale(1, 1);
}
.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all 0.3s;
    background-color: rgba(0,0,0,0.1);
}
.read-more:hover::after {
    opacity: 0;
    transform: scale(0.1, 1);
}
