<!-- start Simple Custom CSS and JS -->
<style type="text/css">
/* CATLEY RANCH – GALERIE */

.ak-gallery-page,
.ak-gallery-page * {
  box-sizing: border-box;
}

.ak-gallery-page {
  background: #090909;
  color: #ffffff;
}

.ak-gallery-container {
  width: min(100% - 44px, 1120px);
  margin: 0 auto;
}

.ak-gallery-hero {
  padding: 96px 0 74px;
  background:
    radial-gradient(circle at 82% 18%, rgba(182,255,0,0.24), transparent 32%),
    linear-gradient(135deg, #111111 0%, #090909 74%);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.ak-gallery-kicker {
  color: #b6ff00;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ak-gallery-title {
  margin: 0;
  max-width: 860px;
  color: #ffffff;
  font-size: clamp(2.55rem, 7vw, 5.4rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.055em;
  text-shadow: 0 18px 46px rgba(0,0,0,0.48);
}

.ak-gallery-lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: #e5e5e5;
  font-size: 1.08rem;
  line-height: 1.8;
}

.ak-gallery-section {
  padding: 64px 0 96px;
}

/* WordPress galerie */
.ak-gallery-page .wp-block-gallery,
.ak-gallery-section .wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.ak-gallery-page .wp-block-gallery.has-nested-images figure.wp-block-image,
.ak-gallery-section .wp-block-gallery.has-nested-images figure.wp-block-image {
  width: 100% !important;
  margin: 0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: #171717 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}

.ak-gallery-page .wp-block-gallery img,
.ak-gallery-section .wp-block-gallery img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease, opacity 0.35s ease !important;
}

.ak-gallery-page .wp-block-gallery figure:hover img,
.ak-gallery-section .wp-block-gallery figure:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

.ak-gallery-page .wp-element-caption,
.ak-gallery-section .wp-element-caption {
  background: rgba(0,0,0,0.7) !important;
  color: #ffffff !important;
  font-size: 0.85rem !important;
  padding: 10px 12px !important;
}

@media (min-width: 760px) {
  .ak-gallery-page .wp-block-gallery,
  .ak-gallery-section .wp-block-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }
}

@media (min-width: 1100px) {
  .ak-gallery-page .wp-block-gallery,
  .ak-gallery-section .wp-block-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .ak-gallery-container {
    width: min(100% - 32px, 1120px);
  }

  .ak-gallery-hero {
    padding: 72px 0 54px;
  }

  .ak-gallery-section {
    padding: 42px 0 70px;
  }
}</style>
<!-- end Simple Custom CSS and JS -->
