/* Gallery page — masonry-style grid (PREVIEW: replaces legacy Weebly gallery) */

body.cc-page-gallery {
  background: #ffffff;
  color: #111111;
}

body.cc-page-gallery .banner-wrap {
  display: none !important;
}

body.cc-page-gallery .cc-main {
  background: #ffffff !important;
  color: #111111;
}

body.cc-page-gallery .cc-footer {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #111111;
}

body.cc-page-gallery .cc-footer a {
  color: #111111;
}

.cc-gallery-hero {
  padding: calc(var(--cc-chrome-h, 84px) + 48px) 24px 28px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 0, 0, 0.04), transparent 55%),
    #ffffff;
  color: #111111;
}

.cc-gallery-hero__eyebrow {
  margin: 0 0 12px;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.55);
}

.cc-gallery-hero h1 {
  margin: 0 0 12px;
  font-family: "Abril Fatface", Georgia, serif;
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #111111;
}

.cc-gallery-hero__lead {
  margin: 0 auto 24px;
  max-width: 34rem;
  font-family: Lato, system-ui, sans-serif;
  line-height: 1.55;
  color: rgba(17, 17, 17, 0.78);
}

.cc-gallery-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cc-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px 48px;
}

.cc-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .cc-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .cc-gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cc-gallery__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 1;
}

.cc-gallery__item a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.cc-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 420ms ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cc-gallery__item:hover img {
    transform: scale(1.05);
  }
}

.cc-gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

@media (max-width: 699px) {
  .cc-gallery__item--wide {
    grid-column: span 2;
    aspect-ratio: 1.2;
  }
}

.cc-gallery-cta {
  text-align: center;
  padding: 8px 24px 88px;
  color: #111111;
}

.cc-gallery-cta p {
  margin: 0 auto 18px;
  max-width: 28rem;
  font-family: Lato, system-ui, sans-serif;
  color: rgba(17, 17, 17, 0.78);
  line-height: 1.5;
}

.cc-gallery-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
