:root {
  --gallery-ink: #1b1b1b;
  --gallery-navy: #1a237e;
  --gallery-sand: #f7e7c9;
  --gallery-cream: #fbf7ef;
  --gallery-coral: #c45a2d;
  --gallery-shadow: rgba(22, 24, 29, 0.12);
}

body {
  background: var(--gallery-cream);
  color: var(--gallery-ink);
}

.gallery-hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #f7e7c9 0%, #f0f4ff 55%, #ffe9df 100%);
}

.gallery-hero::before,
.gallery-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(0px);
}

.gallery-hero::before {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -160px;
  background: #ffe1c7;
}

.gallery-hero::after {
  width: 360px;
  height: 360px;
  bottom: -140px;
  right: -120px;
  background: #d6e1ff;
}

.gallery-hero .hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.gallery-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #1a1f5b;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  box-shadow: 0 10px 22px rgba(22, 24, 29, 0.12);
  margin-bottom: 18px;
}

.gallery-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  position: relative;
}

.gallery-hero h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #c45a2d, #f4b175, #1a237e);
}

.gallery-hero p {
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
  color: #2b2f3b;
  line-height: 1.7;
}

.gallery-hero .hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.gallery-hero .hero-btn {
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-hero .hero-btn.primary {
  background: var(--gallery-navy);
  color: #fff;
  box-shadow: 0 12px 22px rgba(26, 35, 126, 0.2);
}

.gallery-hero .hero-btn.secondary {
  background: #fff;
  color: var(--gallery-navy);
  border: 1px solid rgba(26, 35, 126, 0.2);
}

.gallery-hero .hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px var(--gallery-shadow);
}

.gallery-section {
  padding: 70px 0 90px;
}

.gallery-links {
  margin-top: 40px;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff6ea 0%, #eef3ff 100%);
  border: 1px solid rgba(26, 35, 126, 0.08);
  box-shadow: 0 18px 34px rgba(22, 24, 29, 0.14);
  text-align: center;
}

.gallery-links h2 {
  font-size: 1.5rem;
  color: var(--gallery-navy);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.gallery-links h2 + p {
  margin: 0 0 20px;
  color: #3a3f4e;
}

.gallery-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.gallery-link {
  position: relative;
  padding: 12px 22px 12px 46px;
  border-radius: 16px;
  border: 1px solid rgba(26, 35, 126, 0.12);
  color: #1a1f5b;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #f1f6ff 100%);
  box-shadow: 0 10px 20px rgba(22, 24, 29, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.gallery-link::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #f4b175 0%, #c45a2d 100%);
  box-shadow: 0 0 0 4px rgba(244, 177, 117, 0.2);
}

.gallery-link:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 35, 126, 0.35);
  box-shadow: 0 14px 26px rgba(22, 24, 29, 0.18);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.gallery-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 30px var(--gallery-shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px rgba(20, 24, 36, 0.18);
}

.gallery-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.gallery-card a {
  display: block;
}

.gallery-card .card-body {
  padding: 16px 18px 20px;
}

.gallery-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--gallery-navy);
}

.gallery-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5160;
}

.gallery-highlight {
  margin-top: 48px;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(120deg, #fff4e8 0%, #f2f6ff 100%);
  border: 1px solid rgba(26, 35, 126, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.gallery-highlight h2 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.gallery-highlight p {
  margin: 0;
  color: #3a3f4e;
}

.gallery-highlight a {
  color: var(--gallery-coral);
  font-weight: 600;
  text-decoration: none;
}

.gallery-highlight a:hover {
  text-decoration: underline;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 16, 24, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  z-index: 9999;
}

.gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-modal__image {
  max-width: min(900px, 90vw);
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.gallery-modal__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-modal__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
  .gallery-hero {
    padding: 100px 0 60px;
  }

  .gallery-card img {
    height: 170px;
  }

  .gallery-links {
    padding: 22px;
  }

  .gallery-link-list {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .gallery-hero {
    padding: 90px 0 50px;
  }

  .gallery-hero h1 {
    font-size: clamp(1.7rem, 6vw, 2.3rem);
  }

  .gallery-hero p {
    font-size: 0.98rem;
    padding: 0 6px;
  }

  .gallery-section {
    padding: 50px 0 70px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
  }

  .gallery-card {
    border-radius: 14px;
  }

  .gallery-card img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .gallery-hero {
    padding: 80px 0 40px;
  }

  .gallery-hero .hero-badge {
    font-size: 0.68rem;
    padding: 6px 12px;
    letter-spacing: 0.04em;
  }

  .gallery-hero p {
    font-size: 0.95rem;
  }

  .gallery-section {
    padding: 40px 0 60px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-links {
    padding: 18px;
  }

  .gallery-links h2 {
    font-size: 1.25rem;
  }

  .gallery-link-list {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-link {
    width: 100%;
    text-align: left;
  }

  .gallery-card img {
    height: 200px;
  }
}
