/* ============================================
   Gallery Page — Curug Song
   Completely isolated from homepage via g- prefix
   ============================================ */

/* --- Navbar --- */
.g-navbar {
  background: #fff;
  padding: 24px 40px;
  position: relative;
  z-index: 10;
}

.g-navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2EC4B6;
  text-decoration: none;
  line-height: 1.2;
}

.g-logo:hover {
  opacity: 0.85;
  transition: all 0.2s ease;
}

.g-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.g-nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.5px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.g-nav-link:hover,
.g-nav-link:focus,
.g-nav-link--active {
  color: #2EC4B6;
}

/* --- Hero --- */
.g-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.g-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.g-hero-title {
  position: relative;
  z-index: 2;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  margin: 0;
}

/* --- Gallery Section --- */
.g-section {
  background: #fff;
  padding: 80px 40px;
}

.g-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Header --- */
.g-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}

.g-header__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #2EC4B6;
  margin: 0 0 8px 0;
}

.g-header__subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 16px 0;
}

.g-header__line {
  width: 60px;
  height: 3px;
  background: #2EC4B6;
}

/* --- Grid --- */
.g-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.g-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.g-item:hover img {
  transform: scale(1.05);
}

.g-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.g-item:hover::after {
  opacity: 1;
}

/* --- Span utilities --- */
.g-item--tall { grid-row: span 2; }
.g-item--wide { grid-column: span 2; }
.g-item--full { grid-column: span 3; }

/* --- Footer --- */
.g-footer {
  background: #F5F5F5;
  padding: 80px 40px;
}

.g-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.g-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.g-footer-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2EC4B6;
  margin: 0 0 20px 0;
}

.g-footer-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.7;
  letter-spacing: 0.3px;
  color: #777;
  margin: 0;
}

/* --- Social --- */
.g-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.g-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #BBB;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.g-social-link i {
  font-size: 0.875rem;
  color: #fff;
}

.g-social-link:hover {
  background: #2EC4B6;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(46, 196, 182, 0.3);
}

/* --- Thumbnails --- */
.g-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
}

.g-thumb {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
}

.g-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.g-thumb:hover img {
  transform: scale(1.08);
}

/* --- Copyright Bar --- */
.g-footer-bar {
  background: #2EC4B6;
  padding: 18px 40px;
  text-align: center;
}

.g-footer-bar p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.8125rem;
  color: #fff;
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1199px) {
  .g-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .g-item--wide,
  .g-item--full {
    grid-column: span 2;
  }

  .g-item--tall {
    grid-row: span 2;
  }

  .g-footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .g-footer-col:last-child {
    grid-column: span 2;
  }

  .g-thumbs {
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: 1fr;
  }
}

@media (max-width: 767px) {
  .g-navbar {
    padding: 20px 24px;
  }

  .g-nav-links {
    gap: 20px;
  }

  .g-nav-link {
    font-size: 0.8125rem;
  }

  .g-hero {
    height: 240px;
  }

  .g-hero-title {
    font-size: 2rem;
  }

  .g-section {
    padding: 48px 20px;
  }

  .g-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
    gap: 12px;
  }

  .g-item--wide,
  .g-item--full,
  .g-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .g-header__title {
    font-size: 1.25rem;
  }

  .g-footer {
    padding: 48px 24px;
  }

  .g-footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .g-footer-col {
    align-items: center;
    text-align: center;
  }

  .g-footer-col:last-child {
    grid-column: span 1;
  }

  .g-thumbs {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .g-social {
    justify-content: center;
  }
}
