/* =========================================================
   Mobile responsive styles — Galerie
   Loaded after style.css and galerie.css
   ========================================================= */

@media screen and (max-width: 900px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    background: var(--cream, #fffaf2);
  }

  .page-shell {
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }

  /* HEADER */

  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: auto;
    padding: 16px 18px 14px;
  }

  .brand {
    width: 100%;
  }

  .brand img {
    width: 150px;
    max-width: 56vw;
    height: auto;
    margin: 0 auto;
  }

  .main-nav {
    order: 2;
    width: 100%;
    margin: 0;
    padding: 6px 0 8px;
    justify-content: center;
    gap: 18px;
    overflow-x: visible;
    font-size: 0.84rem;
  }

  .main-nav a {
    flex: 0 0 auto;
  }

  .site-header .header-cta {
    display: none;
  }

  /* HERO */

  .gallery-page {
    max-width: none;
    overflow: hidden;
  }

  .gallery-page .gallery-hero-single {
    width: 100%;
    height: auto;
  }

  .gallery-page .gallery-hero-single img {
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
  }

  /* CATEGORY BLOCKS */

  .gallery-category {
    grid-template-columns: 1fr;
    gap: 18px;
    width: calc(100% - 40px);
    max-width: 680px;
    min-height: 0;
    margin: 22px auto;
    padding: 26px 22px 24px;
  }

  .gallery-category-intro {
    min-height: 0;
    padding-left: 0;
    padding-bottom: 0;
    text-align: center;
  }

  .category-icon {
    position: static;
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
  }

  .gallery-category h2,
  .gallery-page .gallery-category h2 {
    max-width: none;
    margin: 0;
    font-size: clamp(2.5rem, 10vw, 3.45rem);
    line-height: 0.95;
  }

  .category-title-line {
    width: 230px;
    max-width: 80%;
    margin: -8px auto 14px;
    object-position: center center;
  }

  .gallery-category-intro p {
    position: static;
    max-width: 520px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.45;
  }

  .category-leaf {
    display: none;
  }

  .gallery-category-body {
    gap: 16px;
  }

  .gallery-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-photos img {
    height: 190px;
    border-radius: 8px;
  }

  .gallery-more {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    min-height: 48px;
    margin: 4px auto 0;
    gap: 18px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  /* PRIVACY BLOCK */

/*  .gallery-privacy {
    grid-template-columns: 1fr;
    gap: 12px;
    width: calc(100% - 40px);
    max-width: 680px;
    min-height: 0;
    margin: 24px auto;
    padding: 26px 22px;
    text-align: center;
  }*/

  .gallery-privacy {
    position: relative;
    grid-template-columns: 1fr;
    gap: 12px;
    width: calc(100% - 40px);
    max-width: 680px;
    min-height: 0;
    margin: 24px auto;
    padding: 26px 22px;
    text-align: center;
  }

  .gallery-page .privacy-icon,
  .gallery-page .privacy-leaf,
  .gallery-page .privacy-heart {
    transform: none;
  }

  .privacy-icon {
    width: 54px;
    margin: 0 auto;
  }

  .gallery-privacy h2 {
    font-size: clamp(2.35rem, 10vw, 3.2rem);
    line-height: 1;
  }

  .gallery-privacy p,
  .privacy-note {
    max-width: 540px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.45;
  }

/*  .privacy-leaf {
    width: 70px;
    margin: 2px auto;
  }
*/
  .privacy-leaf {
    position: absolute;
    right: 15px;
    top: 46%;
    width: 70px;
    margin: 0;
    transform: translateY(-50%);
  }

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

  .privacy-heart {
    width: 110px;
    margin: 0 auto;
    justify-self: center;
  }

  /* FINAL CTA */

  .gallery-final-cta {
    grid-template-columns: 1fr;
    gap: 14px;
    width: calc(100% - 40px);
    max-width: 680px;
    min-height: 0;
    margin: 24px auto 28px;
    padding: 26px 22px;
    text-align: center;
  }

  .gallery-page .final-cta-left {
    width: 150px;
    height: auto;
    margin: 0 auto;
  }

  .gallery-page .final-cta-text p {
    max-width: 520px;
    margin: 0 auto 8px;
    font-size: 1.45rem;
    line-height: 1;
  }

  .gallery-page .final-cta-text strong {
    font-size: clamp(2.2rem, 10vw, 3.05rem);
    line-height: 0.95;
  }

  .gallery-page .final-join-btn {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    min-height: 68px;
    margin: 6px auto 0;
  }

  .gallery-page .final-join-kicker {
    white-space: normal;
    line-height: 1.15;
  }

  .gallery-page .final-join-main {
    gap: 10px;
    font-size: 1.45rem;
    white-space: nowrap;
  }

  .gallery-page .final-cta-flowers {
    display: none;
  }

  /* FOOTER */

  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 26px 20px;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 0;
  }

  .footer-brand img {
    width: 170px;
    margin: 0 auto;
  }

  .footer-village {
    justify-content: center;
  }

  .footer-village img {
    width: 180px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 520px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand img {
    width: 132px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    font-size: 0.8rem;
  }

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

  .gallery-category {
    padding: 24px 18px 22px;
    margin: 18px auto;
  }

  .category-icon {
    width: 58px;
    height: 58px;
  }

  .gallery-category h2,
  .gallery-page .gallery-category h2 {
    font-size: 2.6rem;
  }

  .category-title-line {
    width: 200px;
    margin-top: -6px;
  }

  .gallery-category-intro p {
    font-size: 0.96rem;
  }

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

  .gallery-photos img {
    height: 210px;
  }

  .gallery-more {
    max-width: none;
  }

  .gallery-privacy,
  .gallery-final-cta {
    padding: 24px 18px;
  }

  .gallery-page .final-join-main {
    font-size: 1.35rem;
  }

  .privacy-leaf {
    position: static;
    width: 70px;
    margin: 2px auto;
    transform: none;
  }

  .footer-links {
    font-size: 0.94rem;
  }
}