/* Gallery page body styles */
.gallery-page {
  background-image: url("/static/img/bg1.png");
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.5;
}

.gallery-page .nav-header {
  position: fixed;
}

/* Hero section */
.gallery-page .gallery-hero {
  background: radial-gradient(700px 600px at 50% 200px, #231f22 0%, var(--bg) 50%),
    radial-gradient(800px 500px at 50% 10%, #1a1a24 0%, transparent 50%),
    var(--bg);
  overflow: hidden;
  height: auto;
  min-height: 600px;
  position: relative;
  padding: 76px 0 64px;
  margin: auto;
}

.gallery-page .gallery-hero .hero-bg-left {
  text-align: left;
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
}

.gallery-page .gallery-hero .hero-bg-right {
  text-align: right;
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
}

.gallery-page .gallery-hero .hero-bg-left img,
.gallery-page .gallery-hero .hero-bg-right img {
  max-width: 100%;
}

.gallery-page .gallery-hero .hero-bg-right::after {
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
}

@media (max-width: 1024px) {
  .gallery-page .gallery-hero {
    min-height: 0;
  }

  .gallery-page .gallery-hero .hero-bg-left {
    display: block;
    max-height: 200px;
  }

  .gallery-page .gallery-hero .hero-bg-right {
    display: block;
    max-height: 200px;
  }

  .gallery-page .gallery-hero .hero-bg-left img,
  .gallery-page .gallery-hero .hero-bg-right img {
    max-height: 200px;
  }

  .gallery-page .gallery-hero .hero-bg-right {
    text-align: right;
    opacity: 0.5;
  }
}

.gallery-page .container {
  width: min(1440px, 92vw);
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.gallery-hero .hero-text {
  text-align: center;
  max-width: 1000px;
  margin: 100px auto 0;
}

.gallery-hero .hero-text h1 {
  font-family: "NexaRust Slab", "Aptos", sans-serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.05;
}

.gallery-hero .hero-text h1 strong,
.gallery-hero .hero-text h1 b {
  color: var(--accent);
  font-weight: 700;
}

.gallery-hero .hero-text p {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 32px 0 0;
}

.gallery-hero .cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 28px auto 0;
}

/* Gallery main styles */
.gallery-main {
  position: relative;
  z-index: 2;
  margin: -150px 0 0;
}

.gallery-container {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
}

.gallery-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
}

.gallery-item {
  flex: 0 1 25%;
  height: 400px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Items Flex */
.gallery-item.landscape {
  flex: 1 1 30%;
}

/* Glass box styling - reusing from carousel */
.glass-box {
  background: rgba(26, 26, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  margin: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(115%);
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .gallery-main {
    margin-top: 0;
  }

  .gallery-item,
  .gallery-item.landscape {
    flex: 0 1 50%;
  }
}

@media (max-width: 768px) {
  .gallery-item,
  .gallery-item.landscape {
    flex: 0 1 100%;
    height: auto;
    max-height: 400px;
  }
  
  .gallery-hero .hero-text h1 {
    font-size: 3rem;
  }
  
  .gallery-hero .hero-text p {
    font-size: 1.2rem;
  }
}