@font-face {
    font-family: "Bungee Spice";
    src: url("../assets/fonts/BungeeSpice-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.page-banner {
    font-family: "Bungee Spice", sans-serif;
    font-size: 3.5rem;
    line-height: 1;
    margin: 0 0 1rem 0;
}

.text-justify {
  text-align: justify;
}

p {
  text-align: justify;
  text-justify: inter-word;
}

.text-center {
  text-align: center;
}

.md-header {
    background: linear-gradient(180deg, #B8860B, #E67E22, #FF5722);
}

.md-nav__title {
    background: linear-gradient(180deg, #B8860B, #E67E22, #FF5722);
}

.md-copyright {
  text-align: center;
  width: 100%;
}

.md-content h1 {
  display: none;
}

.md-content p:has(img) + h2 {
    margin-top: 0.5rem;
}

.section-divider {
    display: block;
    width: 20%;
    max-width: 600px;
    height: auto;
    margin: 30px auto;
}

.royal-fuckup {
    display: block;
    width: 30%;
    max-width: 600px;
    height: auto;
    margin: 30px auto;
}

.tim-cool {
    display: block;
    width: 25%;
    max-width: 600px;
    height: auto;
    margin: 30px auto;
}

.tim-cool-small {
    display: block;
    width: 7%;
    max-width: 600px;
    height: auto;
    margin: 30px auto;
}

.postman-disaster {
    display: block;
    width: 60%;
    max-width: 600px;
    height: auto;
    margin: 30px auto;
}


.md-typeset h2 {
    color: #f6b73c;
    border-bottom: 2px solid #f6b73c;
}

.md-typeset h3 {
    color: #ff8c00;
    border-left: 4px solid #ff8c00;
    padding-left: 0.5em;
}

.movie-poster {
    display: block;
    width: 72%;
    max-width: 350px;
    height: auto;
    margin: 0 auto;
}

.home-poster {
    margin-bottom: 4rem;
}

.cd-cover {
    display: block;
    width: 50%;
    max-width: 350px;
    height: auto;
    margin: 0 auto;
}

a[data-src] {
  text-decoration: none;
  color: var(--md-primary-fg-color, #4051b5);
  cursor: pointer;
}

a[data-src]:hover {
  text-decoration: underline;
}

.album-cover {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.album-cover:hover {
  transform: scale(1.03);
}

.album-playlist h3 {
  margin-top: 0.5em;
  margin-bottom: 0.25em;
}

.album-playlist p {
  margin-top: 0;
  margin-bottom: 1em;
  opacity: 0.85;
}

.album-playlist ul li a {
  display: block;
  padding: 0.25em 0;
  text-decoration: none;
  color: var(--md-primary-fg-color, #4051b5);
}

.album-playlist ul li a:hover {
  text-decoration: underline;
}

img.computer-photo {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
  padding: 4px;
  border: 3px solid #f57c00;
  border-radius: 4px;
  background-color: #ffffff;
  box-sizing: border-box;
}

/* ==========================================================
   FILM POSTER GRID
   ========================================================== */

.film-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    margin: 30px 0;
}

.film-thumb {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.film-thumb img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;

    cursor: pointer;
    border-radius: 4px;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.film-thumb img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}


/* ==========================================================
   FILM LIGHTBOX
   ========================================================== */

.film-lightbox {
    position: fixed;
    inset: 0;

    display: none;

    justify-content: center;
    align-items: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.92);

    z-index: 9999;

    cursor: pointer;
}

.film-lightbox.active {
    display: flex;
}

.film-lightbox img {
    display: block;

    max-width: 95vw;
    max-height: 95vh;

    width: auto;
    height: auto;

    object-fit: contain;

    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);

    cursor: default;
}

.film-lightbox-close {
    position: fixed;

    top: 20px;
    right: 30px;

    color: white;

    font-size: 40px;
    line-height: 1;

    cursor: pointer;

    user-select: none;

    z-index: 10000;
}


/* ==========================================================
   SMALL SCREENS
   ========================================================== */

@media (max-width: 700px) {

    .film-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .film-thumb img {
        max-width: 350px;
    }

    .film-lightbox {
        padding: 15px;
    }

    .film-lightbox img {
        max-width: 95vw;
        max-height: 90vh;
    }

    .film-lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }
}

/* ==========================================================
   CARTOON CORNER
   ========================================================== */

.cartoon-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
    margin: 30px 0;
}

.cartoon-thumb {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.cartoon-thumb img {
    display: block;
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 0 auto;

    cursor: pointer;
    border-radius: 4px;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.cartoon-thumb img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.cartoon-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cartoon-thumb a {
    display: block;
    width: 100%;
}

.cartoon-thumb .cartoon-date {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    margin-top: 0.4rem;
}
