/* =========================================
   Gallery page styles (depends on landing.css)
   Keep this file page-specific only.
   ========================================= */

/* Optional: slightly tighter page width for gallery */
.page{
  max-width: 980px;
}

/* Main wrapper */
.gallery{
  display: grid;
  gap: clamp(12px, 2vw, 18px);
}

/* -------------------------
   Hero strip
------------------------- */
.gallery-hero{
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;

  padding: clamp(16px, 2.2vw, 22px);
  border-radius: var(--radius);
  border: var(--stroke) solid var(--black);
  background: rgba(255,255,255,.78);
  box-shadow: 10px 10px 0 rgba(0,0,0,.10);
}

.gallery-hero::after{
  content:"";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 1px 1px, rgba(0,0,0,.10) 1px, transparent 1.6px);
  background-size: 12px 12px;
  opacity: .14;
  transform: rotate(-6deg);
  pointer-events: none;
}

.gallery-hero__title{
  margin: 0;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.gallery-hero__lead{
  margin: 10px 0 0;
  max-width: 70ch;
  opacity: .85;
  font-weight: 600;
  line-height: 1.5;
}

.gallery-hero__badge{
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-weight: 900;
  font-size: 13px;
  padding: 10px 12px;

  border-radius: 999px;
  border: 2px solid var(--black);
  background: rgba(255,255,255,.75);
  box-shadow: 6px 6px 0 rgba(0,0,0,.10);
  white-space: nowrap;
}

.gallery-hero__badge .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green2);
  border: 2px solid var(--black);
}

/* -------------------------
   Collections grid
   desktop: 2 columns
------------------------- */
.cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

/* -------------------------
   Collection cards
------------------------- */
.card{
  position: relative;
  overflow: hidden;
  min-height: 280px;

  border-radius: var(--radius);
  border: var(--stroke) solid var(--black);
  background: rgba(255,255,255,.70);
  box-shadow: 10px 10px 0 rgba(0,0,0,.10);

  text-decoration: none;
  color: var(--black);

  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

/* Use --img inline in HTML */
.card__media{
  position: absolute;
  inset: 0;

  background-image: var(--img);
  background-size: cover;
  background-position: center;

  transform: scale(1.02);
  filter: saturate(1.03) contrast(1.03);

  transition: transform .35s ease;
}

/* Label panel */
.card__body{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;

  display: grid;
  gap: 4px;

  padding: 12px 14px;
  border-radius: 18px;
  border: 2px solid rgba(0,0,0,.85);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(7px);
  box-shadow: 6px 6px 0 rgba(0,0,0,.10);
}

.card__title{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.card__meta{
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  opacity: .78;
}

/* Hover */
.card:hover{
  transform: translateY(-2px);
  box-shadow: 12px 12px 0 rgba(0,0,0,.12);
  filter: saturate(1.06);
}
.card:hover .card__media{
  transform: scale(1.06);
}

/* -------------------------
   Footer strip
------------------------- */
.gallery-footer{
  border-radius: var(--radius);
  border: var(--stroke) solid var(--black);
  background: rgba(255,255,255,.78);
  box-shadow: 10px 10px 0 rgba(0,0,0,.08);
}

.gallery-footer__inner{
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.gallery-footer__link{
  text-decoration: none;
  font-weight: 900;
  color: var(--black);

  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid var(--black);
  background: rgba(255,255,255,.75);
  box-shadow: 6px 6px 0 rgba(0,0,0,.10);

  transition: transform .12s ease, box-shadow .12s ease;
}

.gallery-footer__link:hover{
  transform: translateY(-1px);
  box-shadow: 7px 7px 0 rgba(0,0,0,.14);
}

/* If no cover image is provided, keep the card looking intentional */
.card:not(.card--has-cover) .card__media{
  background: linear-gradient(135deg, rgba(26,72,51,.08), rgba(0,0,0,.04));
}

/* Optional description styling */
.card__desc{
  margin: 8px 0 0;
  opacity: 0.85;
  line-height: 1.45;
  font-size: 0.95rem;
}


/* -------------------------
   Responsive
------------------------- */

/* Phone portrait: force 1 column + stack hero content */
@media (max-width: 700px) and (orientation: portrait){
  .cards{ grid-template-columns: 1fr; }
  .card{ min-height: 230px; }

  .gallery-hero{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .card,
  .gallery-footer__link{
    transition: none !important;
  }
  .card:hover{
    transform: none;
  }
}
