/* ================================================
   LOVEDALE PARALLAX GALLERY — Frontend Styles
   Matches site palette: #111111 bg, #F26A21 accent
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ldgal-accent:  #F26A21;
  --ldgal-dark:    #111111;
  --ldgal-white:   #ffffff;
  --ldgal-bg:      #ffffff;
  --ldgal-muted:   rgba(17,17,17,0.6);
  --ldgal-radius:  16px;
  --ldgal-gap:     16px;
}

/* ── Section wrapper ── */
.ldgal-section {
  width: 100%;
  background: var(--ldgal-bg);
  padding: 96px 0;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  overflow: hidden;
}

.ldgal-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Section header ── */
.ldgal-section-header {
  text-align: center;
  margin-bottom: 64px;
  /* GSAP initial state */
  opacity: 0;
  transform: translateY(30px);
}

.ldgal-section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--ldgal-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.ldgal-section-sub {
  font-size: 16px;
  color: var(--ldgal-muted);
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
}

/* ── Grid wrapper — the skewed viewport ── */
.ldgal-grid-wrapper {
  overflow: hidden;
  /* GSAP initial state */
  opacity: 0;
}

.ldgal-grid {
  display: flex;
  gap: var(--ldgal-gap);
  padding: 0 16px;
  justify-content: center;
  height: 100%;
  /* Signature tilt + scale — matches the reference HTML */
  transform: rotate(-2deg) scale(1.1);
  transform-origin: center center;
}

/* ── Columns ── */
.ldgal-col {
  display: flex;
  flex-direction: column;
  gap: var(--ldgal-gap);
  flex: 0 0 calc(33.333% - var(--ldgal-gap) * 2 / 3);
  max-width: 340px;
  /* will-change for smooth GPU compositing */
  will-change: transform;
}

/* Column 2 starts shifted up so it interleaves nicely */
.ldgal-col-up {
  transform: translateY(-96px);
}

/* ── Individual image wrapper ── */
.ldgal-img-wrap {
  border-radius: var(--ldgal-radius);
  overflow: hidden;
  position: relative;
  /* Alternating heights for visual rhythm */
  flex-shrink: 0;
}

/* Odd items: shorter */
.ldgal-img-wrap:nth-child(odd)  { height: 256px; }
/* Even items: taller */
.ldgal-img-wrap:nth-child(even) { height: 320px; }

.ldgal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter    0.55s ease;
  filter: brightness(0.95);
}

/* Orange overlay on hover */
.ldgal-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ldgal-accent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: var(--ldgal-radius);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.ldgal-img-wrap:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

.ldgal-img-wrap:hover::after {
  opacity: 0.15;
}

/* ── Placeholder ── */
.ldgal-placeholder {
  background: #f0f0ec;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ddd;
  height: 200px !important;
}
.ldgal-placeholder span {
  font-size: 13px;
  color: #aaa;
  font-family: 'Inter', sans-serif;
}

/* ── Hide col-3 on mobile ── */
@media (max-width: 768px) {
  .ldgal-col-hide-mobile { display: none; }
  .ldgal-section { padding: 64px 0; }
  .ldgal-section-header { margin-bottom: 40px; }
  .ldgal-col {
    flex: 0 0 calc(50% - var(--ldgal-gap) / 2);
    max-width: none;
  }
}

@media (max-width: 480px) {
  .ldgal-grid { transform: rotate(-2deg) scale(1.05); }
  .ldgal-img-wrap:nth-child(odd)  { height: 200px; }
  .ldgal-img-wrap:nth-child(even) { height: 256px; }
}
