/* =========================================================
   Page : Galerie
   ========================================================= */

.gallery-page {
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 25%, rgba(224, 232, 206, 0.2), transparent 19%),
    radial-gradient(circle at 90% 38%, rgba(248, 222, 196, 0.2), transparent 18%),
    var(--cream, #fffdf8);
}

/* CATEGORY BLOCKS */

.gallery-category {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
  width: calc(100% - 96px);
  max-width: 1400px;
  min-height: 236px;
  margin: 14px auto 10px;
  padding: 16px 18px 12px 20px;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(189, 142, 101, 0.26);
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(63, 47, 31, 0.035);
}

.gallery-category-intro {
  position: relative;
  min-height: 210px;
  padding-left: 68px;
}

.category-icon {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.gallery-category h2 {
  margin: 3px 0 0;
  font-family: var(--script, "Caveat", cursive);
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1.05;
}

.gallery-category-green h2 {
  color: var(--green, #2b625b);
}

.gallery-category-red h2 {
  color: var(--terracotta, #c95b3d);
}

.category-title-line {
  display: block;
  width: 190px;
  max-width: none;
  height: auto;
  margin: -15px 0 20px;
  object-fit: contain;
  object-position: left center;
}

.gallery-category-intro p {
  position: relative;
  left: -55px;
  top: -18px;
  max-width: 195px;
  margin: 0;
  color: #191f1d;
  font-size: 0.99rem;
  font-weight: 700;
  line-height: 1.48;
}

.category-leaf {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 74px;
  height: auto;
  opacity: 0.94;
  object-fit: contain;
}

.gallery-category-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.gallery-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-photos img {
  display: block;
  width: 100%;
  height: 162px;
  object-fit: cover;
  border-radius: 5px;
}

.gallery-more {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-width: 280px;
  min-height: 34px;
  padding: 8px 24px;
  background: #fffdf8;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 0.93rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  margin-top: 10px;
}

.gallery-category-green .gallery-more {
  color: var(--green, #2b625b);
}

.gallery-category-red .gallery-more {
  color: var(--terracotta-dark, #bd4529);
}

/* PRIVACY BLOCK */
.gallery-privacy {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr 95px 1fr 88px;
  gap: 16px;
  align-items: center;
  width: calc(100% - 96px);
  max-width: 1400px;
  min-height: 98px;
  margin: 10px auto 14px;
  padding: 15px 22px;
  background: linear-gradient(90deg, #f3f7ef, #fffdf8);
  border: 1px solid rgba(43, 98, 91, 0.22);
  border-radius: 10px;
}


.privacy-icon {
  width: 42px;
  height: auto;
  justify-self: center;
}

.gallery-privacy h2 {
  margin: 0 0 6px;
  color: var(--green, #2b625b);
  font-family: var(--script, "Caveat", cursive);
  font-size: 1.75rem;
  font-weight: 700;
}

.gallery-privacy p {
  margin: 0;
  color: #171f1d;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.38;
}

.privacy-leaf {
  width: 58px;
  height: auto;
  justify-self: center;
}

.privacy-note {
  padding-left: 18px;
  border-left: 1px solid rgba(43, 98, 91, 0.16);
}

.privacy-heart {
  width: 76px;
  height: auto;
  justify-self: end;
}

/* FINAL CTA */
.gallery-final-cta {
  position: relative;
  display: grid;
  grid-template-columns: 168px 1fr 305px 50px;
  gap: 12px;
  align-items: center;
  width: calc(100% - 96px);
  max-width: 1400px;
  min-height: 80px;
  margin: 0 auto 14px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #fff3eb, #fffaf4);
  border-radius: 10px;
  overflow: hidden;
}


.gallery-page .final-cta-left {
  width: 160px;
  height: 64px;
  object-fit: contain;
}

.gallery-page .final-cta-text {
  text-align: center;
}

.gallery-page .final-cta-text p {
  margin: 0 0 4px;
  color: var(--terracotta, #c95b3d);
  font-family: var(--script, "Caveat", cursive);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1;
}

.gallery-page .final-cta-text strong {
  display: block;
  color: var(--green, #2b625b);
  font-family: var(--script, "Caveat", cursive);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.gallery-page .final-join-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-width: 305px;
  max-width: 305px;
  min-height: 68px;
  padding: 11px 18px 12px;

  color: #fff;
  background: linear-gradient(180deg, var(--terracotta-dark, #bd4529), #b63b25);
  border-radius: 7px;
  text-align: center;
  box-sizing: border-box;
  text-decoration: none;
}

.gallery-page .final-cta-flowers {
  width: 46px;
  height: auto;
  justify-self: end;
}

.gallery-page .gallery-hero-single {
  min-height: 0;
  height: auto;
  background: none;
  overflow: hidden;
}

.gallery-page .gallery-hero-single::after {
  content: none;
  display: none;
}

.gallery-page .gallery-hero-single img {
  display: block;
  width: 100%;
  max-width: 1440px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.gallery-page .gallery-category h2 {
  max-width: 235px;
}

.gallery-page .privacy-icon,
.gallery-page .privacy-leaf,
.gallery-page .privacy-heart {
  transform: scale(1.35);
  transform-origin: center center;
}

.gallery-page .final-join-kicker {
  display: block !important;
  width: 100%;
  margin: 0 0 7px;
  color: #fff;
  font-family: var(--body, "Nunito", sans-serif);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.gallery-page .final-join-main {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: var(--body, "Nunito", sans-serif);
  font-size: 1.72rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.gallery-page .final-join-main > span {
  display: inline-block;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: var(--body, "Nunito", sans-serif);
  font-size: inherit;
  font-weight: 900;
  line-height: 1;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .gallery-category,
  .gallery-privacy,
  .gallery-final-cta {
    width: calc(100% - 32px);
  }

  .gallery-category {
    grid-template-columns: 1fr;
  }

  .gallery-category-intro {
    min-height: auto;
    padding-bottom: 20px;
  }

  .gallery-photos {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-privacy,
  .gallery-final-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .privacy-note {
    padding-left: 0;
    border-left: none;
  }
}