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

body {
  background: #000000;
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  overflow: hidden;
  min-height: 100vh;
}

/* Hide scrollbars */
body::-webkit-scrollbar {
  display: none;
}

body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 4rem;
  background: #000000;
  border-bottom: 1px solid #333;
  z-index: 1000;
}

header h1 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: capitalize;
}

header .insta-link {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

header .insta-link img {
  width: 28px;
  height: 28px;
  filter: invert(1);
  transition: opacity 0.3s;
}

header .insta-link:hover img {
  opacity: 0.7;
}

/* Main Layout */
main.marquee-layout {
  margin-top: 80px;
  height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
}

/* Marquee Containers */
.marquee-container {
  overflow: hidden;
  position: relative;
  background: #000000;
}

.marquee-container.horizontal {
  grid-column: 1;
  position: relative;
}

.marquee-container.horizontal::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50px;
  background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
  pointer-events: none;
  z-index: 100;
}

.marquee-container.vertical {
  grid-column: 2;
  grid-row: 1 / 4;
  position: relative;
  box-shadow: inset -20px 0 30px -10px rgba(0, 0, 0, 0.8);
}

/* Marquee Track */
.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll-left 60s linear infinite;
  gap: 8px;
  padding: 4px;
}

.marquee-track.reverse {
  animation: scroll-right 60s linear infinite;
}

.marquee-track.vertical-track {
  flex-direction: column;
  animation: scroll-up 75s linear infinite;
  white-space: normal;
}

/* Marquee Items */
.marquee-item {
  flex-shrink: 0;
  height: 100%;
  cursor: pointer;
  transition: transform 0.3s ease;
  overflow: hidden;
  border-radius: 12px;
}

.marquee-container.horizontal .marquee-item {
  height: calc((100vh - 80px) / 3 - 40px);
  width: auto;
}

.marquee-container.vertical .marquee-item {
  width: 250px;
  height: auto;
  min-height: 350px;
}

.marquee-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s, transform 0.3s;
  border-radius: 12px;
}

.marquee-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Animations */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes scroll-up {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border: 2px solid #333;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
  main.marquee-layout {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
  }

  .marquee-container.vertical {
    grid-column: 1;
    grid-row: 4;
    border-left: none;
    border-top: 1px solid #1a1a1a;
  }

  .marquee-track.vertical-track {
    flex-direction: row;
    animation: scroll-left 40s linear infinite;
  }

  .marquee-container.vertical .marquee-item {
    width: auto;
    height: calc((100vh - 80px) / 4 - 40px);
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 2rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header .insta-link {
    right: 2rem;
  }

  header .insta-link img {
    width: 24px;
    height: 24px;
  }

  main.marquee-layout {
    margin-top: 60px;
    height: calc(100vh - 60px);
  }

  .marquee-container.horizontal .marquee-item {
    height: calc((100vh - 60px) / 4 - 30px);
  }

  .marquee-container.vertical .marquee-item {
    height: calc((100vh - 60px) / 4 - 30px);
  }
}