/* ----- traditionalMedia.CSS   -------*/

/* -------------------------------------------- */
/* GLOBAL LAYOUT                                */
/* -------------------------------------------- */

html, body {
    margin: 0;
    padding: 0;
    background: black;
    color: white;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    min-height: 100%;
}

body {
    opacity: 0;
    display: flex;
    flex-direction: column;
}

body.loaded {
    opacity: 1;
    transition: opacity 0.6s ease;
}

.box{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: black;
    z-index: 1000;

    display: flex;
    flex-direction: column;

    padding: 10px 0;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;

    padding: 40px 20px 120px;
    max-width: 1400px;
    margin: 100px auto;

    align-items: stretch;
    height: auto;
    margin-top: 120px;
    margin-bottom: -60px;
}

#gallery-grid .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#gallery-grid .card-image {
    height: 280px; /* fixed image height */
}

#gallery-grid .card-title {
    min-height: 60px;
}

#gallery-grid .card-desc {
    flex-grow: 0;
}







/* -------------------------------------------- */
/* SITE TITLE                                   */
/* -------------------------------------------- */

#site-title {
    font-size: clamp(36px, 4vw, 60px);
    margin: 10px 0 0 75px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background-color: black;
}

/* when menu is open */
#site-title.menu-open {
    transform: scale(0.95);
    opacity: 0;
}

#site-subtitle {
    font-size: clamp(36px, 4vw, 40px);
    margin: 10px 0 0 75px;
    text-align: left;
    top: 0;
    background-color: black;
    z-index: 10;
}

/* -------------------------------------------- */
/* SCROLL + SLIDER STRUCTURE                    */
/* -------------------------------------------- */

#scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    scroll-behavior: smooth;
    margin: 0 auto;
    box-sizing: border-box;
    min-height: min(70vh, 520px);
    margin-top: 0;
}

#scroll-container::-webkit-scrollbar{
    display: none;
}

#scroll-container{
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    margin-top: 0px;
}

#slider-outer, 
#slider-wrapper {
    position: relative;
    overflow: visible;
    margin-top: 0px;
}

#slider {
    display: flex;
    align-items: flex-start; /* cards grow upward */
    transition: all 0.4s ease;
    overflow: visible;
    min-height: min(70vh, 520px);
    
}

/* -------------------------------------------- */
/* CARD WRAPPER AND CARD                        */
/* -------------------------------------------- */

.card-wrapper {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    height: min(70vh, 520px);
    --wrapper-height: calc(100% - 120px); /* top image area */
}

.card {
    background-color: rgb(20,20,20);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
    height: 520px;

}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.card a {
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

/* -------------------------------------------- */
/* CARD CONTENT                                 */
/* -------------------------------------------- */

.card-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.card-title {
    padding: 12px;
    font-weight: bold;
    text-align: center;
    background: rgba(255,255,255,0.08);

    height: 60px;     /* KEY */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title span {
    display: block;
    text-align: center;

    font-size: clamp(14px, 2vw, 22px);
    font-weight: bold;
    line-height: 1.2;

    text-wrap: balance;   /* modern browsers */
    overflow-wrap: break-word;
}

.card-desc {
    padding: 12px;
    font-size: 18px;
    opacity: 0.85;
    text-align: center;
    height: 100px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    line-clamp: 5;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* -------------------------------------------- */
/* HOVER EFFECT (DESKTOP ONLY)                  */
/* -------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: scale(1.035);
        box-shadow: 0 0 35px rgba(255,255,255,0.4);
        z-index: 10;
    }
    .card:hover .card-title {
        background-color: rgba(180, 180, 180, 0.6);
    }

    .card:hover .card-image {
        filter: grayscale(0%);
    }
}

/* -------------------------------------------- */
/* ARROW BUTTONS                                */
/* -------------------------------------------- */

.arrow-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(20px, 4vw, 40px);
    width: clamp(40px, 6vw, 60px);
    height: clamp(40px, 6vw, 60px);
    border: none;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;

}

.arrow-btn:hover {
    background: white;
}

#arrow-left { left: 10px; }
#arrow-right { right: 10px; }


/* -------------------------------------------- */
/* SOCIAL ICONS + LOGO                          */
/* -------------------------------------------- */
#social-bar {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 4px;
  z-index: 9999;
}

#social-bar a {
  width: clamp(28px, 6vw, 42px);
}

#social-bar img {
  width: 100%;
  transition: 0.2s;
}

.about-link{
    position: relative;
    top: -7px;
}

.imdb-link{
    position: relative;
    top: 5px;
}

#social-bar img:hover {
  filter: brightness(1.5);
  transform: scale(1.1);
}


/* Adjust vertical placement of slider */
#scroll-container,
#slider-outer {
    margin-top: 0;
}

#site-footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: clamp(3px, 1vw, 6px) clamp(6px, 2vw, 12px);
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: clamp(10px, 2.5vw, 14px);
    letter-spacing: 0.5px;
    background-color: black; /* optional: match body bg */
    z-index: 100;
}


#site-footer .logo {
    position: relative; /* or just omit position */
    width: clamp(50px, 5vw, 80px);
    opacity: 0.8;
    margin: 0;
}


#site-footer p {
  margin: 0;
  opacity: 0.85;
  text-align: right;
  flex: 1;
}


@media (max-width: 600px) {
    html, body {
      overflow-y: auto;
      overflow-x: auto;
      height: auto;
    }

        body {
        padding-top: 120px;
    }

    body::before {
        content: "";
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 110px;
        background: black;
        z-index: 9998;
    }

    /* HEADER STAYS FIXED */
    #site-title {
        position: fixed;
        top: 0;

        width: 100%;
        margin: 0;
        padding: 12px 0;

        font-size: 48px;
        text-align: center;

        z-index: 10000;
        background: black;
    }

    #hamburger {
        position: fixed !important;
        left: 22px !important;
        top: 28px !important;

        margin: 0 !important;
        transform: none !important;

        z-index: 9999 !important;
    }

    #social-bar {
        position: fixed;
        top: 80px;
        left: 2px;

        width: 100%;
        display: flex;
        justify-content: center;

        margin: 0;
        padding: 0;

        height: 50px;
        background-color: black;

        z-index: 10000;

        gap: 10px;
    }

    /* SCROLL BECOMES NORMAL VERTICAL PAGE */
    #scroll-container {
        overflow-x: hidden;
        overflow-y: visible;
        display: block;
        padding: 20px 12px 120px;
    }

    /* STACK CONTENT */
    #slider {
        display: flex;
        flex-direction: column;
        gap: 18px;
        align-items: center; /* centers cards */
    }

    /* CENTERED CARDS */
    .card-wrapper {
        width: 95% !important;
        max-width: 280px;   /* keeps BBC-like centered column */
        margin: 0 auto;
        height: auto;
    }

    .card {
        width: 100%;
        height: auto;
    }

    .card-image {
        height: 180px;   /* or 180px depending on style */
        background-size: contain; /* shows full image */
        background-repeat: no-repeat;
        background-position: center;
        filter: grayscale(0%);    /* optional: keeps clarity on mobile */
    }

    /* ARROWS DISAPPEAR */
    .arrow-btn {
        display: none !important;
    }

        body{
        padding-top: 60px;
    }

}



 


:root{
    --cards-per-row: 5;
}

@media (max-width: 600px) {
    :root {
        --cards-per-row: 2;
    }
}

@media (min-width: 700px) {
    :root {
        --cards-per-row: 3;
    }
}

@media (min-width: 1024px) {
    :root {
        --cards-per-row: 5;
    }
}


