body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: black;
}

.main_wrapper {
    display: block; /* Ensures normal flow for the main section */
}


.main {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    /* height: 20vw; */
    justify-content: center;
    align-content: center;
    align-items: center;
    margin: 20vh auto 0;
    /* overflow: hidden; */
    position: relative;
    border-radius: 25px;

    /* Add translucent background over the entire section */
    background-color: rgba(0, 0, 0, 0.6); /* Black with 60% transparency */
    background-blend-mode: overlay; /* Ensure it blends with the background image */
    background-image: url('/images_video/1025 copy.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.main_content {
    font-family: ocr-a-std, monospace;
    letter-spacing: 2px;
    padding: 2%;
    margin: 0;
    /* background-color: rgba(0, 0, 0, 0.6); 
    border-radius: 10px; 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); Optional for better visibility */
}


.main_content_name-title {
    color: white;
    font-size: 20px;
    letter-spacing: -2px;
    font-weight: 500;
}

.main_content_description {
    font-size: 30px;
    color: white;
    letter-spacing: 5px;
    font-weight: 200;
}

.portfolio_link {
    position: flex-start;
    font-size: 26px;
    color: white;
    font-weight: 200;
}

.body {
    background-color: black;
}

.footer_nav, a:link {

    margin-top: 10px;
    /* font-family: Arial, Helvetica, sans-serif; */
    color: rgba(255, 255, 255, 0.7);
    font-weight: 200;
    text-decoration-line: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    letter-spacing: -1px;
    font-size: 20px;

}

.footer_nav__button {
    font-family: ocr-a-std, monospace;
    letter-spacing: 2px;
    padding: 5% 0;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 200;
    text-decoration-line: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;

}

.gallery_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the video gallery */
    justify-content: center; /* Optional: centers vertically */
    margin: 0 auto;
    width: 100%;
}

.gallery_wrapper__hidden {
    display: none;
}

.video_gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal-width columns */
    gap: 20px; /* Space between videos */
    max-width: 1000px; /* Optional, restrict maximum width */
    margin: 0 auto; /* Centers the entire grid horizontally */
    justify-content: center; /* Ensures grid items are centered */
    position: relative;
    border-radius: 25px; /* Optional for rounded edges */
    padding: 10px;
}

.video_gallery video {
    width: 100%; /* Make videos responsive */
    height: auto; /* Maintain aspect ratio */
}

.video-description {
    font-family: ocr-a-std, monospace;
    font-size: 30px;
    color: white;
    letter-spacing: 5px;
    font-weight: 200;
    max-width: 1000px;
    margin: 0 auto;
}

.syro__video {
    max-width: 750px;
}

.syro__video,
.gallery_wrapper video {
  width: calc(100% - 20px); /* Full width minus padding */
  max-width: 1000px; /* Ensure it does not exceed its container */
  margin: 0 auto; /* Center horizontally */
  padding: 10px; /* Add 10px padding on all sides */
  box-sizing: border-box; /* Include padding in element's dimensions */
}

a:hover {
    transition: 1s ease;
    color: #fff;
}

a:visited {
    color: rgba(255, 255, 255, 0.65);
}

/* ── Site footer ── */

.site-footer {
  padding: 2rem;
  font-family: ocr-a-std, monospace;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
}

.site-footer a,
.site-footer a:link,
.site-footer a:visited {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  display: inline;
  margin-top: 0;
  flex-direction: initial;
  align-items: initial;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #fff;
}

/* ── Index page ── */

.index-body {
    overflow-x: hidden;
}

.index-grid {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.panel {
    position: relative;
    width: 100%;
    flex: 1;
    display: block;
    text-decoration: none;
    background-color: #111;
    overflow: hidden;
    border-bottom: 1px solid #222;
    transition: filter 0.4s ease;
}

.panel:hover {
    filter: brightness(1.15);
}

.panel__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.55;
}

.panel__title {
    font-family: ocr-a-std, monospace;
    font-size: clamp(1.5rem, 4vw, 4.5rem);
    color: white;
    font-weight: 500;
    letter-spacing: -2px;
    margin: 0;
    position: absolute;
    text-decoration: none;
    line-height: 1;
    z-index: 1;
}

.panel__title--bottom-left {
    bottom: 2.5rem;
    left: 2.5rem;
}

.panel__title--bottom-center {
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.panel__title--top-right {
    top: 2.5rem;
    right: 2.5rem;
    text-align: right;
}

@media screen and (max-width: 768px) {
    .panel {
        flex: 1;
    }

    .panel__title {
        font-size: clamp(1.2rem, 6vw, 2.5rem);
    }

    .panel__title--bottom-left {
        bottom: 1.5rem;
        left: 1.5rem;
    }

    .panel__title--bottom-center {
        bottom: 1.5rem;
        white-space: normal;
        text-align: center;
        width: 100%;
        left: 0;
        transform: none;
        padding: 0 1rem;
    }

    .panel__title--top-right {
        top: 1.5rem;
        right: 1.5rem;
    }
}

/* ── Portfolio / Works hub ── */

.portfolio-body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #1a1a1a;
}

/* Reset global a:link flex interference on new pages */
.portfolio-body a,
.portfolio-body a:link,
.portfolio-body a:visited,
.media-body a,
.media-body a:link,
.media-body a:visited {
  display: block;
  margin-top: 0;
  flex-direction: initial;
  align-items: initial;
  font-size: initial;
  font-weight: initial;
  letter-spacing: initial;
  text-decoration: none;
}

.site-back-link,
.site-back-link:link,
.site-back-link:visited {
  position: fixed;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 100;
  display: block;
  font-family: ocr-a-std, monospace;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-top: 0;
  font-weight: 400;
  transition: color 0.3s ease;
}

.site-back-link:hover {
  color: #fff;
}

/* 20-column asymmetric grid: top row 60/40, bottom row 35/65 */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: 52vh 48vh;
  height: 100vh;
  gap: 3px;
}

.port-panel--syro      { grid-column: 1 / 13;  grid-row: 1; }
.port-panel--rio       { grid-column: 13 / 21; grid-row: 1; }
.port-panel--portrait  { grid-column: 1 / 8;   grid-row: 2; }
.port-panel--metaskins { grid-column: 8 / 21;  grid-row: 2; }

.port-panel,
.port-panel:link,
.port-panel:visited {
  position: relative;
  display: block;
  height: 100%;
  text-decoration: none;
  overflow: hidden;
  transition: filter 0.4s ease;
  color: white;
  margin-top: 0;
}

.port-panel:hover { filter: brightness(1.12); }

/* Per-panel backgrounds with subtle radial gradients */
.port-panel--syro {
  background: radial-gradient(ellipse at 72% 78%, #1c1c1c 0%, #0a0a0a 65%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.port-panel--rio {
  background: radial-gradient(ellipse at 28% 78%, #161616 0%, #080808 65%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.port-panel--portrait {
  background: radial-gradient(ellipse at 72% 22%, #1e1e1e 0%, #0d0d0d 65%);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.port-panel--metaskins {
  background: radial-gradient(ellipse at 28% 22%, #181818 0%, #0a0a0a 65%);
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 28px);
}

/* Scanline texture */
.port-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Subtle white glow on hover */
.port-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.port-panel:hover::after {
  background: rgba(255, 255, 255, 0.04);
}

.port-panel__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 2rem;
  box-sizing: border-box;
  z-index: 2;
}

.port-panel__index {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: ocr-a-std, monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 4px;
}

.port-panel__tag {
  font-family: ocr-a-std, monospace;
  font-size: clamp(0.5rem, 0.85vw, 0.68rem);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 4px;
  margin-bottom: 0.55rem;
  font-weight: 400;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.port-panel:hover .port-panel__tag { opacity: 1; }

.port-panel__title {
  font-family: ocr-a-std, monospace;
  font-size: clamp(1.4rem, 3.6vw, 4.2rem);
  color: white;
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 0.92;
  margin: 0;
}

/* Corner bracket decorations */
.port-panel__corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.p-corner {
  position: absolute;
  width: 13px;
  height: 13px;
  opacity: 0.25;
  transition: opacity 0.3s ease;
}

.port-panel:hover .p-corner { opacity: 0.9; }

.p-corner--tl {
  top: 1.1rem;
  left: 1.25rem;
  border-top: 1.5px solid rgba(255, 255, 255, 0.4);
  border-left: 1.5px solid rgba(255, 255, 255, 0.4);
}

.p-corner--br {
  bottom: 1.1rem;
  right: 1.25rem;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.4);
  border-right: 1.5px solid rgba(255, 255, 255, 0.4);
}

/* ── Media / Detail pages ── */

.media-body {
  background: #0a0a0a;
  color: white;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.media-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background: #0a0a0a;
  z-index: 10;
}

.media-back,
.media-back:link,
.media-back:visited {
  font-family: ocr-a-std, monospace;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.3s ease;
  display: block;
  margin-top: 0;
}

.media-back:hover { color: #fff; }

.media-header__tag {
  font-family: ocr-a-std, monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 4px;
  flex: 1;
  opacity: 1;
}

.media-header__index {
  font-family: ocr-a-std, monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 4px;
  flex-shrink: 0;
}

/* Two-column layout: meta left, content right */
.media-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3.5rem;
  align-items: start;
}

/* Gallery pages: stacked with meta as side-by-side row */
.media-main--gallery {
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.media-meta--row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}

.media-title {
  font-family: ocr-a-std, monospace;
  font-size: clamp(2.5rem, 5.5vw, 6rem);
  font-weight: 500;
  letter-spacing: -3px;
  line-height: 0.88;
  color: white;
  margin: 0 0 2rem;
}

.media-title--sm {
  font-size: clamp(2rem, 4vw, 4.5rem);
  margin-bottom: 0;
}

.media-description {
  font-family: ocr-a-std, monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
  line-height: 2.2;
  margin: 0;
}

.media-video {
  width: 100%;
  display: block;
  background: #111;
}

/* Video grid with dark gap as separator */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: #111;
}

.media-gallery video {
  width: 100%;
  height: auto;
  display: block;
  background: #0d0d0d;
}

/* ── Responsive ── */

@media screen and (max-width: 768px) {
    .main {
        max-width: 90%; /* Reduce the width to fit smaller screens */
        height: auto; /* Allow the height to adjust dynamically */
        margin: 10vh auto 5vh; /* Add more margin for smaller screens */
        border-radius: 10px; /* Adjust border radius for smaller screens */
        background-size: contain; /* Ensure the background fills the section */
    }

    .main_content_name-title {
        font-size: 16px; /* Adjust font size for smaller screens */
        letter-spacing: -1px;
    }

    .main_content_description {
        font-size: 18px; /* Adjust font size for readability */
        letter-spacing: 2px;
    }

    .video-description {
        font-size: 12px;
        line-height: 1;
    }

    .footer_nav a {
        font-size: 16px; /* Reduce font size for links */
        text-align: center; /* Center-align links */
    }

    .video_gallery {
        grid-template-columns: 1fr; /* Single column for small screens */
    }

    .video_gallery video {
        width: 100%; /* Ensure full width on smaller devices */
    }

    /* Portfolio grid collapses to single column */
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        height: 100vh;
    }

    .port-panel--syro,
    .port-panel--rio,
    .port-panel--portrait,
    .port-panel--metaskins {
        grid-column: 1 / 2;
        clip-path: none;
    }

    .port-panel--syro      { grid-row: 1; }
    .port-panel--rio       { grid-row: 2; }
    .port-panel--portrait  { grid-row: 3; }
    .port-panel--metaskins { grid-row: 4; }

    .port-panel__title {
        font-size: clamp(1.4rem, 8vw, 2.4rem);
        letter-spacing: -1px;
    }

    .port-panel__tag {
        font-size: 0.55rem;
    }

    /* Media pages collapse to single column */
    .media-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1.25rem 3rem;
    }

    .media-meta--row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .media-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .media-gallery {
        grid-template-columns: 1fr;
    }

    .pl-media-grid {
        grid-template-columns: 1fr;
    }

    .pl-slot--large {
        grid-column: 1;
        aspect-ratio: 16 / 9;
    }
}

/* ── Polygon Veil page ── */

.pl-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

.pl-title-block {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}

.pl-title {
  font-family: ocr-a-std, monospace;
  font-size: clamp(3rem, 7vw, 8rem);
  font-weight: 500;
  letter-spacing: -4px;
  line-height: 0.88;
  color: white;
  margin: 0;
}

.pl-description {
  padding-top: 0.5rem;
}

.pl-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 3px;
  background: #111;
}

.pl-slot--large {
  grid-column: 1 / 3;
}

.pl-slot {
  position: relative;
  background: #0d0d0d;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pl-slot::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.pl-slot__label {
  font-family: ocr-a-std, monospace;
  font-size: 0.65rem;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.2);
}

/* When a slot contains media, hide the placeholder label */
.pl-slot:has(video) .pl-slot__label,
.pl-slot:has(img) .pl-slot__label {
  display: none;
}

.pl-slot video,
.pl-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 768px) {
  .pl-title-block {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .pl-main {
    padding: 2rem 1.25rem 3rem;
  }
}

/* ── Polygon Veil page ── */

.pv-main {
  padding-top: 0;
}

.pv-title-block {
  padding: 3.5rem 2rem 3rem;
}

.pv-title {
  font-family: ocr-a-std, monospace;
  font-size: clamp(3rem, 7vw, 8rem);
  font-weight: 500;
  letter-spacing: -4px;
  line-height: 0.88;
  color: white;
  margin: 0;
}

.pv-description {
  font-family: ocr-a-std, monospace;
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin: 1rem 0 0;
  text-transform: uppercase;
}

.pv-flow {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #111;
}

/* Full-width video strips — scale proportionally with viewport */
.pv-video-section {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.pv-video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pv-image-row {
  display: grid;
  gap: 3px;
  background: #111;
}

.pv-image-row > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 0;
}

/* Portrait video (narrow) beside a landscape screenshot (wide) */
.pv-image-row--a {
  grid-template-columns: 2fr 3fr;
  aspect-ratio: 16 / 7;
}

/* Two screenshots — reversed proportion for visual rhythm */
.pv-image-row--b {
  grid-template-columns: 3fr 2fr;
  aspect-ratio: 16 / 7;
}

.pv-tile--portrait {
  object-position: center 20%;
}

/* ── Alkaline Lake overrides ── */

.pv-flow--black {
  background: #0a0a0a;
}

.pv-image-row--black {
  background: #0a0a0a;
}

.al-logo-section {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
}

.al-logo {
  width: clamp(60px, 8vw, 120px);
  display: block;
  filter: brightness(0) invert(1);
}

/* Three equal columns for Alkaline Lake image rows */
.pv-image-row--c {
  grid-template-columns: repeat(3, 1fr);
  aspect-ratio: 16 / 7;
}

@media screen and (max-width: 768px) {
  .pv-title-block {
    padding: 2rem 1.25rem 2rem;
  }

  /* Taller rows on narrow screens so content stays visible */
  .pv-image-row--a,
  .pv-image-row--b {
    aspect-ratio: 16 / 9;
  }

  .pv-image-row--c {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .pv-image-row--c > * {
    aspect-ratio: 4 / 3;
  }
}