:root {
    --main: #6B6E3D;
    --accent: #9A7B4F;
    --muted: #6b6b6b;
    --bg: #fffaf6;
    --navbar-height: 80px;
  }

  body {
    font-family: "Inter", "Prompt", system-ui, -apple-system, "Helvetica Neue", Arial;
    background: var(--bg);
    color: #222;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  .main-content {
    padding-top: calc(var(--navbar-height) + 2rem);
    padding-bottom: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  /* ---------- HERO GALLERY SECTION ---------- */
  .gallery-hero {
    margin-bottom: 3rem;
    text-align: center;
  }

  .hero-heading {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--main);
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    display: inline-block;
    overflow: hidden;
  }

  .hero-heading span {
    display: inline-block;
    animation: wave 1.6s ease-in-out infinite;
    transform-origin: bottom center;
  }

  @keyframes wave {

    0%,
    100% {
      transform: translateY(0);
    }

    25% {
      transform: translateY(-12px);
    }

    75% {
      transform: translateY(12px);
    }
  }

  .gallery.custom-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "a b c"
      "d d d";
    gap: 14px;
    max-width: 1000px;
    margin: 0 auto;
  }

  .gallery.custom-layout figure {
    border-radius: 14px;
    overflow: hidden;
    background: #eee;
    position: relative;
    transition: all 0.4s ease;
  }

  .gallery.custom-layout img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(85%) saturate(50%) brightness(85%) contrast(90%);
    transition: filter 0.5s ease, transform 0.4s ease;
  }

  .gallery.custom-layout figure:hover img {
    filter: none;
    transform: scale(1.03);
  }

  .gallery.custom-layout .small:nth-child(1),
  .gallery.custom-layout .small:nth-child(2),
  .gallery.custom-layout .small:nth-child(3) {
    aspect-ratio: 4 / 2;
  }

  .gallery.custom-layout .wide {
    grid-area: d;
    grid-column: 1 / -1;
    aspect-ratio: 21 / 4;
  }

  .gallery.custom-layout figcaption {
    position: absolute;
    left: 14px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.85);
    color: #222;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  .gallery.custom-layout figure:hover figcaption {
    opacity: 1;
    transform: translateY(0);
  }

  /* ---------- MAIN LAYOUT ---------- */
  .layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 36px;
    align-items: start;
  }

  .panel {
    background: transparent;
  }

  .side {
    border-left: 1.5px solid rgba(107, 110, 61, 0.35);
    padding-left: 1.5rem;
    margin-top: 2rem;
    border-radius: 1px;
  }

  .label {
    display: inline-block;
    border: 1px solid rgba(107, 110, 61, 0.18);
    padding: 6px 14px;
    border-radius: 24px;
    color: var(--main);
    font-weight: 600;
    margin-bottom: 10px;
  }

  .register-btn.btn-outline {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    border: 2px solid var(--main);
    background: transparent;
    color: var(--main);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
  }

  .register-btn.btn-outline:hover {
    background: var(--main);
    color: #fff;
    border-color: var(--main);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(107, 110, 61, 0.15);
  }

  .rule {
    border-left: none;
    border-top: 1.5px solid rgba(107, 110, 61, 0.35);
    padding-left: 0;
    padding-top: 1.5rem;
  }


  @media (max-width: 1024px) {
    .layout {
      grid-template-columns: 1fr;
    }

    .side {
      border-left: none;
      border-top: 1.5px solid rgba(107, 110, 61, 0.35);
      padding-left: 0;
      padding-top: 1.5rem;
    }
  }

  @media (max-width: 900px) {
    .gallery.custom-layout {
      grid-template-columns: 1fr 1fr;
      grid-template-areas:
        "a b"
        "c c"
        "d d";
    }
  }

  @media (max-width: 600px) {
    .gallery.custom-layout {
      grid-template-columns: 1fr;
      grid-template-areas:
        "a"
        "b"
        "c"
        "d";
    }

  }