:root {
  --bg-dark: #111111;
  --bg-light: #ffffff;
  --text-dark: #111111;
  --text-muted: #1D3354;
  --border: #111111;
  --grid-gap: 0px;
  --border-width: 5px;
}


b{
   font-family: "satoshi-black";
  src: url("assets/fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

a:link {
  text-decoration: inherit;
  color: inherit;
}

a:visited {
    text-decoration: inherit;
  color: inherit;
}

a:hover {
  text-decoration: inherit;
  color: inherit;
}

a:active {
   text-decoration: inherit;
  color: inherit;
}





* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "satoshi-black";
  src: url("assets/fonts/Satoshi-Black.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "satoshi-medium";
  src: url("assets/fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "satoshi-light";
  src: url("assets/fonts/Satoshi-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

body {
  background: var(--bg-dark);
  font-family: 'satoshi-medium', sans-serif;
  /* padding: 3vw; */
  padding: 5% 5%;
  overflow-x: hidden;
  color: var(--bg-light);
}

/* Grid Container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--grid-gap);
  width: 100%;
  /* grid-auto-rows: minmax(10vh, auto); */
  grid-auto-rows: 10vh;
  grid-auto-flow: dense;
}

/* Grid Items */
.grid-item {
  background: var(--bg-dark);
  overflow: hidden;
  position: relative;
  border: var(--border-width) solid var(--border);
}





/* Header Styling */
.grid-item.header {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
 align-items: left;
  text-align: left;
  padding: 1vw;
  background: var(--bg-light);
}

.grid-item.back {
  display: flex;
  flex-direction: column;
   justify-content: flex-end;
  align-items: left;
  text-align: left;
  
  padding: 1vw;
  background: var(--bg-light);
}

.grid-item.back:hover {
    transform: translateY(-5px) scale(1.06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 10;
   cursor: pointer;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}




.category {
  font-size: 1.2vw;
  letter-spacing: 0.1em;
  color: var(--bg-dark);
 
}

.title {
  
    font-size: 3vw;
  white-space: nowrap;
  justify-content: center;
  align-items:end;
  line-height: 90%;
  color: var(--bg-dark);
  
}

/* Video Styling */
.grid-item.video {
  background: var(--bg-dark);
}

.grid-item.video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image Styling */
.grid-item.image {
  background: var(--bg-dark);
}

.grid-item.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text Box Styling */
.grid-item.text {
  background: var(--bg-light);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-box p {
  font-family: 'satoshi-light', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bg-dark);
  margin-bottom: 1rem;
}

.text-box p:last-child {
  margin-bottom: 0;
}

/* Decorative Empty Boxes */
.grid-item.deco {
  background: var(--bg-light);
  border: var(--border-width) solid var(--border);
}

.grid-item.deco:hover {
  background: var(--bg-dark);
}




/* Tablet Layout */
@media (max-width: 1024px) {
  body {
    padding: 2vw;
  }

  .grid-container {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
  }

  .title {
    font-size: clamp(1.75rem, 4vw, 3rem);
  }

  .text-box {
    padding: 2rem;
  }

  .text-box p {
    font-size: 0.95rem;
  }

  /* Adjust spans for tablet */
  .grid-item[style*="span 2"] {
    grid-column: span 2 !important;
  }
}

/* Mobile Layout */
@media (max-width: 640px) {
  body {
    padding: 1.5vw;
  }

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(180px, auto);
  }

  .title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .grid-item.header {
    padding-left: 1vw;
    padding-bottom: 0.5vw;
  }

  .grid-item.back {
    padding-left: 1vw;
    padding-bottom: 0.5vw;
  }

  .text-box {
    padding: 1.5rem;
  }

  .text-box p {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .category {
    font-size: 0.75rem;
  }

  /* Force all items to span max 2 columns on mobile */
  .grid-item[style*="span 2"],
  .grid-item[style*="span 3"],
  .grid-item[style*="span 4"],
  .grid-item[style*="span 5"],
  .grid-item[style*="span 6"] {
    grid-column: span 2 !important;
  }

  /* Single column items stay as is */
  .grid-item[style*="span 1"] {
    grid-column: span 1 !important;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .grid-container {
    grid-auto-rows: minmax(150px, auto);
  }

  .text-box {
    padding: 1.25rem;
  }

  .text-box p {
    font-size: 0.8rem;
  }
}

/* Hover Effects for Images and Videos */
.grid-item.image,
.grid-item.video {
  cursor: pointer;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.grid-item.image:hover,
.grid-item.video:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.grid-item.image img,
.grid-item.video video {
  transition: none;
  pointer-events: none;
}

/* Fullscreen Viewer */
.fullscreen-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-viewer.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-content img,
.fullscreen-content video {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border: var(--border-width) solid var(--border);
}

.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: var(--bg-light);
  font-size: 3rem;
  cursor: pointer;
  z-index: 10000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  font-family: 'satoshi-light', sans-serif;
  line-height: 1;
}

.close-btn:hover {
  transform: rotate(90deg);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--bg-light);
  color: var(--bg-light);
  font-size: 3rem;
  cursor: pointer;
  z-index: 10000;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  font-family: 'satoshi-light', sans-serif;
  line-height: 1;
  backdrop-filter: blur(10px);
  padding-bottom: 10px; 
  /* padding-left: 3px;  */

}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 2rem;
}

.next-btn {
  right: 2rem;
}

@media (max-width: 768px) {
  .close-btn {
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    width: 40px;
    height: 40px;
  }

  .nav-btn {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }

  .prev-btn {
    left: 1rem;
  }

  .next-btn {
    right: 1rem;
  }

  .fullscreen-content img,
  .fullscreen-content video {
    max-width: 95vw;
    max-height: 85vh;
  }
}




.grid-spacer {
  pointer-events: none;
  background: transparent;
}
