/* =========================================
   Styled Gallery - Zigzag Bands
   Hero left, alternating image/text right
   BoardingCafe brown theme
   ========================================= */

.styled-gallery{
  /* Palette tuned to match your menu/footer */
  --sg-bg: #1f1510;          /* overall background */
  --sg-panel-bg: #2c1c14;    /* text panel background */
  --sg-text: #f6ebd5;        /* warm cream */
  --sg-heading: #ffffff;
  --sg-accent: #e8d9bf;
  --sg-btn-bg: #e8d9bf;
  --sg-btn-text: #3a2a21;

  width: 100%;
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.65fr);
  gap: 0; /* no gap between hero & right side */
  background: var(--sg-bg);
  color: var(--sg-text);
}

/* ---------- Left hero: full-bleed ---------- */

.styled-gallery .sg-left{
  position: relative;
  overflow: hidden;
}
.styled-gallery .sg-left img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Right column: stacked bands ---------- */

.styled-gallery .sg-right{
  padding: 0;
  margin: 0;
  background: var(--sg-bg);
}

.styled-gallery .sg-grid{
  display: grid;
  grid-template-columns: 1fr; /* each sg_card is a full-width band */
  gap: 0;
  width: 100%;
  height: 100%;
}

/* Each sg_card = one horizontal band:
   2 cols: one pure image cell, one pure text cell
*/
.styled-gallery .sg-card{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--sg-text);
}

/* Make sure each band is a single row: image + text */
.styled-gallery .sg-card .sg-card-img-wrap,
.styled-gallery .sg-card .sg-card-body{
  grid-row: 1;
}

/* Image cell fills its half */
.styled-gallery .sg-card-img-wrap{
  width: 100%;
  height: 100%;
  min-height: 220px;        /* keep rows substantial */
  overflow: hidden;
}
.styled-gallery .sg-card-img-wrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
  aspect-ratio: 1 / 1;
}

/* Text panel fills full row height; content sticks to top-left */
.styled-gallery .sg-card-body{
  background: var(--sg-panel-bg);
  padding: 30px 32px 26px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;   /* <-- no vertical centering */
  gap: 10px;
}

/* Headings */
.styled-gallery .sg-card-title{
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-heading);
}

/* Copy */
.styled-gallery .sg-card-text{
  font-size: 20px;
  line-height: 1.8;
  color: rgba(246,235,213,0.9);
}
.styled-gallery .sg-card-text p{
  margin: 0 0 8px;
}

/* Button */
.styled-gallery .sg-card-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 10px;
  padding: 8px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  border-radius: 999px;
  border: none;
  background: var(--sg-btn-bg);
  color: var(--sg-btn-text);
  text-decoration: none;

  transition: all 0.18s ease;
}
.styled-gallery .sg-card-btn:hover{
  background: transparent;
  color: var(--sg-btn-bg);
  border: 1px solid var(--sg-btn-bg);
}

/* ---------- Zigzag layout ----------
   Odd cards:  image | text
   Even cards: text  | image
*/

.styled-gallery .sg-card:nth-child(odd) .sg-card-img-wrap{
  grid-column: 1;
}
.styled-gallery .sg-card:nth-child(odd) .sg-card-body{
  grid-column: 2;
  text-align: left;
}

.styled-gallery .sg-card:nth-child(even) .sg-card-body{
  grid-column: 1;
  text-align: left;
}
.styled-gallery .sg-card:nth-child(even) .sg-card-img-wrap{
  grid-column: 2;
}

/* Subtle hover zoom on corresponding image */
.styled-gallery .sg-card:hover .sg-card-img-wrap img{
  transform: scale(1.03);
}

/* ---------- Mobile: stack cleanly ---------- */

@media (max-width: 900px){
  .styled-gallery{
    grid-template-columns: 1fr;  /* hero top, bands below */
  }

  .styled-gallery .sg-left{
    order: 1;
    height: 260px;
  }
  .styled-gallery .sg-left img{
    height: 100%;
  }

  .styled-gallery .sg-right{
    order: 2;
  }

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

  .styled-gallery .sg-card{
    grid-template-columns: 1fr;
  }

  /* On mobile each band becomes image top, text bottom */
  .styled-gallery .sg-card-img-wrap{
    grid-column: 1;
    min-height: 200px;
  }
  .styled-gallery .sg-card-body{
    grid-column: 1;
    padding: 22px 18px 20px;
  }
}

/* Focus states */
.styled-gallery a:focus-visible,
.styled-gallery button:focus-visible{
  outline: 2px solid var(--sg-btn-bg);
  outline-offset: 3px;
}
