/* Base Reset and Fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #050505;
  color: #ffffff;
  font-family: "sans-serif", sans-serif;
  overflow-x: hidden; /* Prevent horizontal page spill */
  display: flex;
  width: 100%;
}

/* Mobile Header Bar (Hidden on Desktop natively) */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 25px;
  justify-content: space-between;
  align-items: center;
  z-index: 250;
}

.mobile-logo img {
  width: 45px;
  height: 45px;
  display: block;
}

/* Redesigned Symmetrical Toggle Menu Button Setup */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  position: absolute;
  transition:
    transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.3s ease;
}

.hamburger-line:nth-child(1) {
  transform: translateY(-7px);
}
.hamburger-line:nth-child(2) {
  transform: translateY(0);
}
.hamburger-line:nth-child(3) {
  transform: translateY(7px);
}

.menu-toggle.is-open .hamburger-line:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.menu-toggle.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.is-open .hamburger-line:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* Fixed Left Sidebar Navigation Layout */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background-color: #050505;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 40px;
  z-index: 100;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.sidebar-logo {
  position: absolute;
  top: 30px;
  left: 40px;
}

.sidebar-logo img {
  width: 75px;
  height: 75px;
  display: block;
  transition: opacity 0.3s ease;
}

.sidebar-logo img:hover {
  opacity: 0.8;
}

.nav-links {
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: center;
  margin: 25px 0;
  position: relative;
  cursor: pointer;
}

.nav-item a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 3px;
  transition: color 0.3s ease;
}

.nav-item .line {
  width: 0;
  height: 1px;
  background-color: #ffffff;
  margin-right: 0;
  transition: all 0.3s ease;
}

.nav-item:hover a,
.nav-item.active a {
  color: #ffffff;
}

.nav-item.active .line {
  width: 30px;
  margin-right: 15px;
}

/* Main Layout Window Content Canvas */
.content-container {
  margin-left: 240px;
  width: calc(100% - 240px);
  padding: 60px 80px;
  max-width: 100%;
}

/* Dynamic Category Header Block */
.section-header {
  margin-bottom: 60px;
  text-transform: uppercase;
  animation: fadeIn 0.6s ease-out;
}

.category-num {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 5px;
  letter-spacing: 2px;
}

.category-title {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 15px;
}

.category-subtitle {
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
}

.category-date {
  padding-top: 15px;
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
}

/* Asymmetric Grid Layout */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 40px;
  width: 100%;
}

/* Photo Cards Setup */
.photo-card {
  position: relative;
  background-color: #111;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

/* Image Wrapper Container */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: crosshair;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition:
    transform 0.7s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.5s ease;
}

.photo-card.wide {
  grid-column: span 1;
  aspect-ratio: 4/3;
}
.photo-card.square {
  grid-column: span 1;
  aspect-ratio: 1/1;
}
.photo-card.tall-full {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.photo-card.standard {
  grid-column: span 1;
  aspect-ratio: 4/3;
}

/* Technical Corner Hover HUD Effect */
.overlay-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.4s ease;
}
.tl {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}
.tr {
  top: 20px;
  right: 20px;
  border-left: none;
  border-bottom: none;
}
.bl {
  bottom: 20px;
  left: 20px;
  border-right: none;
  border-top: none;
}
.br {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
}

.meta-top,
.meta-bottom {
  display: flex;
  flex-direction: column;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.meta-bottom {
  transform: translateY(-10px);
}
.label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  margin-bottom: 2px;
}
.val {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.location {
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.date {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 3px;
  margin-top: 4px;
}

.card-image-wrapper:hover img {
  transform: scale(1.03);
  filter: grayscale(0%);
}
.card-image-wrapper:hover .overlay-info {
  opacity: 1;
}
.card-image-wrapper:hover .meta-top,
.card-image-wrapper:hover .meta-bottom {
  transform: translateY(0);
}
.card-image-wrapper:hover .corner {
  top: 15px;
  bottom: 15px;
  left: 15px;
  right: 15px;
}

/* Voting System Panel Configurations */
.card-interaction-bar {
  display: flex;
  gap: 12px;
  padding: 15px 5px;
  background-color: #050505;
  align-items: center;
}

.vote-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.vote-btn .vote-icon {
  font-size: 0.85rem;
  line-height: 1;
  transition: filter 0.2s ease;
  z-index: 2;
}

.vote-btn .vote-count {
  position: absolute;
  left: 38px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: color 0.2s ease;
}

.vote-btn:hover,
.vote-btn.is-active {
  background-color: #ffffff;
  border-color: #ffffff;
}

.vote-btn:hover .vote-icon,
.vote-btn.is-active .vote-icon {
  filter: brightness(0) contrast(1);
}

.vote-btn:hover .vote-count,
.vote-btn.is-active .vote-count {
  color: #ffffff;
}

.vote-btn.thumbs-up,
.vote-btn.thumbs-down {
  margin-right: 20px;
}

/* ==========================================
   ABOUT PAGE - MASSIVE IMAGES & CLEAN OVERLAP
   ========================================== */
.about-container {
  max-width: 1400px;
  margin-top: 20px;
  animation: fadeIn 0.6s ease-out forwards;
}

.about-split-layout {
  display: flex;
  gap: 80px;
  align-items: center;
  position: relative;
}

.about-content {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  gap: 50px;
  z-index: 2;
}

.about-text-block {
  display: flex;
  flex-direction: column;
}

.about-label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
  font-weight: bold;
}

.about-headline {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.about-paragraph {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
}

/* The Image Showcase Panel Container */
.about-media-aside {
  flex: 1.5; /* Images claim significantly more layout canvas real estate */
  display: block;
  position: relative;
  min-height: 800px; /* High baseline wrapper bounds to securely stack massive elements */
  width: 100%;
}

.about-media-frame {
  position: absolute;
  background-color: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
  transition:
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.3s ease;
}

.about-media-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Image 1: Black Sands (Top Layer) */
.frame-top {
  width: 85%; /* Expanded sizing */
  top: 0;
  left: 0;
  z-index: 5;
}

/* Image 2: Shattered Canyon (Bottom Layer) */
.frame-bottom {
  width: 80%; /* Expanded sizing */
  bottom: 0;
  right: -20px;
  z-index: 6;

  /* Adjusted balanced offset parameters to blend edges cleanly */
  margin-top: -160px;
  margin-left: -140px;
  transform: translate(-40px, -20px);
}

.about-media-frame:hover {
  z-index: 10;
  transform: scale(1.03) translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Explicitly hides the descriptive caption typography lines underneath the frames */
.frame-caption {
  display: none !important;
}

/* YouTube Block and Miscellaneous */
.youtube-cta-block {
  margin-top: 100px;
  padding: 50px 40px;
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.youtube-label {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: #ff0000;
  font-weight: bold;
  margin-bottom: 10px;
}
.youtube-headline {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.youtube-paragraph {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 650px;
  margin-bottom: 30px;
}
.youtube-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px 35px;
  transition: all 0.3s ease;
}
.youtube-btn:hover {
  background-color: #ffffff;
  color: #050505;
  border-color: #ffffff;
}
.btn-arrow {
  transition: transform 0.3s ease;
}
.youtube-btn:hover .btn-arrow {
  transform: translateX(5px);
}

.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 198;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.menu-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Photo Fullscreen Viewer Popup Styles */
.modal-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(3, 3, 3, 0.96);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1250px;
  background-color: #050505;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.is-active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 2.2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ffffff;
}
.modal-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
  padding: 30px;
}

.modal-left img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}
.modal-right {
  width: 360px;
  padding: 60px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}
.modal-meta-group {
  margin-bottom: 35px;
}
.modal-meta-group:last-child {
  margin-bottom: 0;
}
.modal-meta-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}
#modal-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0;
  text-transform: uppercase;
}
.modal-mono-text {
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 0;
}
.modal-body-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  margin: 0;
}

.site-footer {
  margin-top: 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: left;
}

.site-footer p {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   MEDIA QUERIES AND BREAKPOINTS (RESPONSIVE)
   ========================================== */

@media (max-width: 1200px) {
  .content-container {
    padding: 60px 40px;
  }
  .photo-grid {
    grid-gap: 25px;
  }
}

@media (max-width: 1100px) {
  body {
    flex-direction: column;
  }

  .mobile-header {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 199;
    padding-left: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-logo {
    top: 110px;
    left: 30px;
  }

  .sidebar-logo img {
    width: 60px;
    height: 60px;
  }

  .nav-item .line {
    display: none;
  }

  .content-container {
    margin-left: 0;
    width: 100%;
    padding: 100px 20px;
  }

  .category-title {
    font-size: 3.2rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .about-split-layout {
    flex-direction: column;
    gap: 40px;
  }

  /* Unwinds the overlapping positioning transforms cleanly on mobile devices */
  .about-media-aside {
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .about-media-frame {
    position: relative !important;
    width: 100% !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
  }
}

@media (max-width: 768px) {
  .content-container {
    padding: 110px 20px 40px 20px;
  }

  .category-title {
    font-size: 2.5rem;
  }

  .photo-card.wide,
  .photo-card.square,
  .photo-card.tall-full,
  .photo-card.standard {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .about-headline {
    font-size: 1.8rem;
  }
  .about-paragraph {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .youtube-cta-block {
    padding: 40px 25px;
    margin-top: 60px;
  }

  .youtube-headline {
    font-size: 2.2rem;
  }
  .youtube-btn {
    width: 100%;
    justify-content: center;
  }

  .modal-overlay {
    padding: 15px;
  }
  .modal-container {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-left {
    padding: 15px;
  }
  .modal-left img {
    max-height: 40vh;
  }
  .modal-right {
    width: 100%;
    padding: 30px 20px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  #modal-title {
    font-size: 1.6rem;
  }

  .modal-close {
    top: 15px;
    right: 15px;
    z-index: 1001;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.6);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    line-height: 32px;
    text-align: center;
    font-size: 1.8rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
