.modal-info-toggle {
  position: absolute;
  top: clamp(12px, 2vw, 28px);
  left: clamp(12px, 2vw, 28px);
  width: clamp(40px, 4vw, 52px);
  height: clamp(40px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(17, 17, 17, 0.78);
  color: rgba(255, 255, 255, 0.76);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(20px, 3.2vw, 28px);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
  z-index: 5;
}

.modal-info-toggle:hover,
.modal-info-toggle:focus-visible {
  background: rgba(236, 0, 78, 0.78);
  border-color: rgba(236, 0, 78, 0.38);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.modal-info-toggle[aria-pressed="true"] {
  background: rgba(236, 0, 78, 0.82);
  border-color: rgba(236, 0, 78, 0.48);
  color: #fff;
}

.modal-info-toggle[aria-disabled="true"],
.modal-info-toggle[aria-disabled="true"]:hover,
.modal-info-toggle[aria-disabled="true"]:focus-visible {
  background: rgba(17, 17, 17, 0.58);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.28);
  cursor: not-allowed;
  transform: none;
}

.modal-info-toggle__icon {
  pointer-events: none;
  transform: translateY(-1px);
}

.modal-image-frame {
  position: relative;
  width: 98vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: -50px;
}

.modal-image-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  padding: 65px;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0) 0%, rgba(8, 8, 8, 0.78) 60%, rgba(8, 8, 8, 0.9) 100%);
  color: rgba(245, 245, 245, 0.94);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-image-info.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modal-image-info__title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
}

.modal-image-info__description {
  margin: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  line-height: 1.6;
  color: rgba(240, 240, 240, 0.88);
}
/* Import Web Fonts */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.raleway {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* General styles */
body {
  background-color: #191919;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  width: 100%;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
}

h1 {
  color: #ec004e;
  font-size: 5em;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 10px;
}

h2 {
  color: rgb(0, 129, 209);
  font-size: 3em;
  margin-bottom: 10px;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

h3 {
  color: rgb(0, 129, 209);
  font-size: 2em;
  margin-bottom: 10px;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

p {
  font-size: 1em;
  color: rgb(138, 150, 160);
  line-height: 1.5em;
  margin-left: 0px;
  text-wrap: pretty;
}

.mainContent p.film-card-description {
    width: auto;
}


.mainContent p, .mainContent h1, .mainContent h2, .mainContent h3, .mainContent ul {
  margin: auto;
  width: clamp(260px, 80vw, 650px);
  padding-top: 25px;
}


a {
  opacity: 80%;
  color: rgb(9, 196, 121);
  text-decoration: none;
  transition: opacity 0.5s;
}

a:hover {
  text-decoration: none;
  opacity: 100%;
  transition: opacity 0.2s;
}

footer {
  background-color: black;
  color: rgb(117, 67, 109);
  width: 100%;
  bottom: 0;
  font-size: 0.7em;
  text-align: center;
  position: relative;
  margin-top: auto;
}

img {
  max-width: 100%;
  height: auto;
  transition: opacity 0.5s;
}

.mainContent {
  margin: auto;
  max-width: 80%;
  min-width: 300px;
  padding: 1vw;
  margin-bottom: 150px;
}

#picturesSection .mainContent {
  margin: 0;
  max-width: none;
  width: 100%;
  padding: 0 0 72px;
}

.aboutText {
  /* Remove margin-right and padding-right, flex gap will handle spacing */
  margin-right: 30px;
  padding-right: 30px;
  width: clamp(350px, 60vw, 500px);
  flex: 1;
  order: 1;/* Adjust flex basis for text */
   /* Ensure minimum width for readability */
   /* Make text appear first */
}

.aboutText p, .aboutText h1, .aboutText h2, .aboutText h3 {
    padding-left: 40px;
    width: clamp(350px, 70vw, 500px);
    /* margin-right: 0px; */
    /* padding-right: 0px; */
}

.profile_pic {
  /* Remove margin: auto; positioning will be handled by flex container */
  /* margin: 20px auto; */
  width: 100%; /* Make image responsive within its container */
  height: auto;
  object-fit: cover;
  max-width: 500px; /* Limit the maximum size of the image */
  max-height: 50%; /* Increase max-width to allow image to be larger */
  display: block;
  border-radius: 5px;
  flex: 1; /* Allow image to take up available space */
  min-width: 250px; /* Ensure minimum width */
  align-self: flex-start; /* Align image to the top of the flex container */
  margin: auto; /* Reset margin */
  order: 2; /* Make image appear second */
}

/* New styles for the about page layout */
.about-container {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap on smaller screens if needed */
  gap: 30px; /* Space between text and image */
  align-items: flex-start; /* Align items to the top */
  margin-top: 20px; /* Add some space above the container */
  padding-right: 10%;
  /* padding-left: 10%; */
}

/* Media Query for smaller screens (e.g., mobile) */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
  }

  .profile_pic {
    /* order: -1; */ /* Move the image above the text */
    order: 0; /* Reset order for mobile layout */
    margin-bottom: 20px; /* Add space below the image */
    align-self: center; /* Center image within the column */
    max-width: 300px; /* Ensure image doesn't get too large */
  }

  .aboutText {
    max-width: 100%; /* Allow text to use full width */
    flex-basis: auto; /* Reset flex-basis */
    order: 0; /* Reset order for mobile layout */
  }
}


.pictureNote {
  font-size: 0.8em;
  font-style: italic;
}

.rulesList {
  font-size: 1em;
  color: rgb(166, 156, 149);
}

.rulesList li {
  margin: 15px 0;
}

/* Styles for Main Navigation Bar */
.main-nav ul,
.categories-nav ul,
.albums-nav ul,
.thoughts-nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.8em;
}

.main-nav ul li,
.categories-nav ul li,
.albums-nav ul li,
.thoughts-nav ul li {
  display: inline-block;
  margin-right: 0px;
}

.main-nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  background-color: #000;
  font-weight: 500;
}

.main-nav ul li a {
  display: block;
  padding: 10px 10px;
  color: white;
  text-decoration: none;
}

.main-nav ul li a:hover {
  background-color: #333;
}

/* Styles for Categories Navigation Bar */
.categories-nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  background-color: #ec004e;
  font-weight: 600;
}

.categories-nav ul li a {
  display: block;
  padding: 8px 10px;
  color: rgb(0, 0, 0);
  text-decoration: none;
}

.categories-nav ul li a:hover {
  background-color: #555;
}

/* Styles for Albums Navigation Bar */
.albums-nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  background-color: #191919;
  font-weight: 500;
}

.albums-nav ul li {
  margin: 0;
}

.albums-nav ul li a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
}

.albums-nav ul li a:hover {
  background-color: #666;
}

/* Styles for thoughts navigation - matching album navigation pattern */
.thoughts-nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  background-color: #191919;
  font-weight: 500;
}

.thoughts-nav ul li {
  margin: 0;
}

.thoughts-nav ul li a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
}

.thoughts-nav ul li a:hover {
  background-color: #666;
}

.active-thought {
  background-color: #353535; /* Highlight color for active thought */
  color: white;
}

.thoughts-nav {
  display: block;
  text-align: left;
  margin: 0px;
}

.thoughts-nav ul {
  display: block;
}

#imageContainer {
  width: 100%;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 32px);
  display: grid;
  gap: clamp(14px, 2.8vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-flow: dense;
  align-items: start;
}

@media (min-width: 1200px) {
  #imageContainer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1500px;
  }
}

.picture-card {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(236, 0, 78, 0.12);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.picture-card:hover,
.picture-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.52);
  border-color: rgba(236, 0, 78, 0.26);
}

.picture-card__media {
  position: relative;
  display: block;
  width: 100%;
  background: #050505;
}

.picture-card__image {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  object-fit: contain;
}

.picture-card__image[src] {
  opacity: 1;
}

.picture-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(236, 0, 78, 0.55), 0 26px 60px rgba(0, 0, 0, 0.48);
}

@supports (grid-template-rows: masonry) {
  #imageContainer {
    grid-template-rows: masonry;
  }
}

@supports not (grid-template-rows: masonry) {
  #imageContainer {
    grid-auto-rows: 12px;
  }

  .picture-card {
    grid-row: span var(--row-span, 1);
  }
}

#picturesSection .pictures-text {
  width: clamp(260px, 68vw, 640px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Add this rule for the album description element */
#albumDescription {
  white-space: pre-line; /* Preserves line breaks */
  color: rgb(138, 150, 160); /* Optional: Ensure consistent styling */
  margin-bottom: 20px; /* Optional: Add some space below description */
}

#content section {
  display: none;
}

.active-category {
  background-color: #c00241; /* Highlight color for active category */
  color: white;
}

.active-album {
  background-color: #353535; /* Highlight color for active album */
  color: white;
}

.active-top-nav {
  background-color: #3b3b3b; /* Highlight color for active top-level nav link */
  color: white;
}

.categories-nav,
.albums-nav {
  display: block;
  text-align: left;
  margin: 0px;
}

.categories-nav ul,
.albums-nav ul {
  display: block;
}

/* The Modal (background) */
.modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100vw;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background-color: transparent;
  text-align: center;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(16px, 4vw, 40px);
  padding-top: calc(clamp(16px, 4vw, 40px) + env(safe-area-inset-top, 0px));
  padding-right: calc(clamp(16px, 4vw, 40px) + env(safe-area-inset-right, 0px));
  padding-bottom: calc(clamp(90px, 16vh, 160px) + env(safe-area-inset-bottom, 0px));
  padding-left: calc(clamp(16px, 4vw, 40px) + env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  backdrop-filter: blur(4px);
  isolation: isolate;
}

.modal::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgb(0 0 0 / 88%);
  pointer-events: none;
  z-index: -1;
}

.modal.is-visible {
  display: flex;
}

.film-modal {
  padding: clamp(20px, 4vw, 48px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.film-modal__dialog {
  position: relative;
  width: clamp(320px, 92vw, 1120px);
  max-height: calc(100vh - clamp(48px, 10vh, 140px));
  overflow-y: auto;
  background: #191919;
  border-radius: 18px;
  padding: clamp(18px, 3.5vw, 36px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(236, 0, 78, 0.18);
}

.film-modal__body {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vh, 40px);
  padding-top: clamp(32px, 5vh, 56px);
}

.film-modal__video {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.55);
  isolation: isolate;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.4);
}

.film-modal__video-inner {
  position: relative;
  padding-top: 56.25%;
  background: rgba(0, 0, 0, 0.6);
}

.film-modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
  background: #000;
  opacity: 0;
  transition: opacity 0.45s ease 0.1s;
}

.film-modal__video--ready .film-modal__iframe {
  opacity: 1;
}

.film-modal__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(25, 25, 25, 0.78), rgba(25, 25, 25, 0.95));
  backdrop-filter: blur(6px);
  z-index: 1;
  transition: opacity 0.35s ease;
  background-image: var(--film-loader-image, none);
  background-size: cover;
  background-position: center;
}

.film-modal__video--ready .film-modal__loader {
  opacity: 0;
  pointer-events: none;
}

.film-modal__loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 28px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  border: 1px solid rgba(236, 0, 78, 0.38);
}

.film-modal__spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(236, 0, 78, 0.25);
  border-top-color: #ec004e;
  animation: film-modal-spin 1s linear infinite;
}

.film-modal__loader-text {
  color: rgb(210, 208, 205);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes film-modal-spin {
  to {
    transform: rotate(360deg);
  }
}

.film-modal__info {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vh, 20px);
  text-align: left;
}

.film-modal__header {
  margin: 0;
}

.film-modal__title {
  margin: 0;
  color: #ec004e;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  letter-spacing: 0.05em;
}

.film-modal__year {
  color: rgb(138, 150, 160);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
}

.film-modal__role {
  margin: 6px 0 0;
  color: rgb(166, 156, 149);
  font-style: italic;
  letter-spacing: 0.05em;
}

.film-modal__description {
  margin: 0;
  color: rgb(166, 156, 149);
  line-height: 1.8;
  text-wrap: pretty;
}

.film-modal__external-link {
  margin-top: 8px;
}

.film-modal__watch-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: rgba(9, 196, 121, 0.12);
  border-radius: 999px;
  border: 1px solid rgba(9, 196, 121, 0.35);
  color: rgb(9, 196, 121);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.film-modal__watch-link:hover {
  background: rgba(9, 196, 121, 0.2);
  transform: translateY(-1px);
}

.film-modal__watch-link::after {
  content: "↗";
  font-size: 1.1em;
}

.modal-image {
  width: 100%;
  height: 100%;
  max-height: 95vh;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
  touch-action: pan-y;
}

.modal-hit-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  max-width: 420px;
  border: none;
  background: transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.modal-hit-zone--prev {
  left: 0;
  bottom: 10px;
  transform: scaleX(-1);
}

.modal-hit-zone--next {
  right: 0;
  bottom: 10px;
}

.modal:hover .modal-hit-zone,
.modal:focus-within .modal-hit-zone {
  opacity: 1;
}

.modal-controls {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 7vh, 52px);
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: min(92vw, 520px);
  z-index: 2;
  bottom: 45px;
}

.modal-control-button {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 12px 24px;
  border-radius: 999px;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.modal-control-button:focus,
.modal-control-button:hover {
  background: rgba(236, 0, 78, 0.85);
  border-color: rgba(236, 0, 78, 0.4);
  transform: translateY(-2px);
}

.modal-control-button:active {
  transform: translateY(0);
}

.modal-control-button--prev::before,
.modal-control-button--next::after {
  display: inline-block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2em;
}

.modal-control-button--prev::before {
  content: "‹";
  margin-right: 8px;
}

.modal-control-button--next::after {
  content: "›";
  margin-left: 8px;
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
  background: transparent;
  border: none;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.film-modal .close {
  top: clamp(12px, 2vw, 28px);
  right: clamp(12px, 2vw, 28px);
  width: clamp(40px, 4vw, 52px);
  height: clamp(40px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(28px, 4vw, 38px);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
  z-index: 5;
}

.film-modal .close:hover,
.film-modal .close:focus {
  background: rgba(236, 0, 78, 0.72);
  border-color: rgba(236, 0, 78, 0.38);
  color: #fff;
}

/* Provenance info styles  WIP*/
#provenanceInfo {
  color: white;
  margin-top: 20px;
  font-size: 14px;
}

/* Add near the top of the file */
#content {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.main-nav ul li a,
.categories-nav ul li a,
.albums-nav ul li a {
  transition: background-color 0.2s ease-in-out;
}

/* Particle Background Styles */
#particles-js {
  position: fixed; /* Keeps it fixed during scroll */
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1; /* Places it behind all other content */
  background-color: #191919; /* Your original background color */
  background-image: url(""); /* Required by particles.js */
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

/* Film Cards Styles */
#filmCardsContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 50px;
}

.film-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.film-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.film-card-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.film-card-content {
  padding: 20px;
}

.film-card-title {
  color: #ec004e;
  font-size: 1.8em;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  margin: 0 0 10px 0;
}

.film-card-year {
  color: rgb(0, 129, 209);
  font-size: 1.2em;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  margin: 0 0 10px 0;
}

.film-card-role {
  color: rgb(138, 150, 160);
  font-size: 0.9em;
  font-style: italic;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.film-card-description {
  color: rgb(166, 156, 149);
  font-size: 0.85em;
  line-height: 1.5;
  margin: 0;
}

#codeCardsContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 50px;
  padding-left: 20px;
  padding-right: 20px;
}

#picturesSection .pictures-text,
#codeSection .mainContent > h1,
#codeSection .mainContent > p {
  width: clamp(260px, 70vw, 640px);
  margin-left: auto;
  margin-right: auto;
}


