.gallery-page {
  background: var(--brand-panel);
}

.gallery-page section {
  padding: 72px 0;
}

.gallery-intro {
  position: relative;
  overflow: hidden;
}

.gallery-intro::before {
  position: absolute;
  top: -180px;
  right: -150px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-blue) 13%, transparent), transparent);
  content: "";
}

.gallery-intro__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 70px;
}

.gallery-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.gallery-intro__content p {
  max-width: 620px;
  margin: 0;
  color: var(--brand-muted);
  font-size: 16px;
  line-height: 1.8;
}

.gallery-intro__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-highlight {
  min-height: 180px;
  padding: 28px 22px;
  border: 1px solid var(--brand-blue);
  border-radius: 18px;
  background: var(--brand-panel);
  box-shadow: 0 18px 45px color-mix(in srgb, var(--brand-blue) 7%, transparent);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-highlight:nth-child(2) {
  transform: translateY(18px);
}

.gallery-highlight:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brand-green) 42%, transparent);
}

.gallery-highlight:nth-child(2):hover {
  transform: translateY(12px);
}

.gallery-highlight .svg-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  color: var(--brand-green);
}

.gallery-highlight strong,
.gallery-highlight span {
  display: block;
}

.gallery-highlight strong {
  margin-bottom: 7px;
  color: var(--brand-dark);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
}

.gallery-highlight span {
  color: var(--brand-muted);
  font-size: 13px;
  line-height: 1.5;
}

.gallery-showcase {
  background: var(--brand-soft);
}

.gallery-showcase__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.gallery-showcase__head p {
  max-width: 430px;
  margin: 0;
  color: var(--brand-muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: right;
}

.gallery-result-count {
  display: block;
  margin-top: 5px;
  color: var(--brand-green);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.gallery-filter {
  min-width: 104px;
  padding: 11px 20px;
  border: 1px solid var(--brand-blue);
  border-radius: 999px;
  background: var(--brand-panel);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.gallery-filter:hover,
.gallery-filter.is-active {
  border-color: var(--brand-green);
  background: var(--brand-green);
  color: var(--brand-panel);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-green) 20%, transparent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.gallery-card {
  position: relative;
  display: block;
  min-height: 245px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--brand-blue);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--brand-blue) 8%, transparent);
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 245px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--brand-blue) 90%, transparent) 100%);
  content: "";
  opacity: 0.78;
  transition: opacity 0.3s ease;
}

.gallery-card__overlay {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  left: 20px;
  color: var(--brand-panel);
  transform: translateY(5px);
  transition: transform 0.3s ease;
}

.gallery-card__overlay small,
.gallery-card__overlay strong {
  display: block;
}

.gallery-card__overlay small {
  margin-bottom: 5px;
  color: var(--brand-panel);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.gallery-card__overlay strong {
  color: var(--brand-panel);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.3;
}

.gallery-card:hover img {
  transform: scale(1.07);
}

.gallery-card:hover::after {
  opacity: 1;
}

.gallery-card:hover .gallery-card__overlay {
  transform: translateY(0);
}

.gallery-cta {
  background: var(--brand-panel);
}

.gallery-cta__box {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 52px 58px;
  border-radius: 22px;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--brand-blue) 97%, transparent), color-mix(in srgb, var(--brand-blue) 93%, transparent)),
    url("../images/products/16.png") center / cover no-repeat;
  box-shadow: 0 20px 50px color-mix(in srgb, var(--brand-blue) 15%, transparent);
}

.gallery-cta__box::after {
  position: absolute;
  top: -120px;
  right: 20%;
  width: 260px;
  height: 260px;
  border: 1px solid color-mix(in srgb, var(--brand-panel) 16%, transparent);
  border-radius: 50%;
  content: "";
}

.gallery-cta__box > * {
  position: relative;
  z-index: 1;
}

.gallery-cta__box .gallery-kicker,
.gallery-cta__box h2 {
  color: var(--brand-panel) !important;
}

.gallery-cta__box h2 {
  max-width: 650px;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.gallery-cta__box h2::after {
  display: none !important;
}

.gallery-cta__box .brand-btn {
  flex: 0 0 auto;
}

@media (max-width: 1199px) {
  .gallery-page section {
    padding: 64px 0;
  }

  .gallery-intro__layout {
    gap: 40px;
  }

  .gallery-intro__highlights {
    gap: 12px;
  }

  .gallery-highlight {
    padding: 24px 18px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .gallery-page section {
    padding: 58px 0;
  }

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

  .gallery-showcase__head {
    align-items: start;
  }
}

@media (max-width: 767px) {
  .gallery-page section {
    padding: 48px 0;
  }

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

  .gallery-highlight,
  .gallery-highlight:nth-child(2) {
    min-height: 0;
    transform: none;
  }

  .gallery-highlight .svg-icon {
    margin-bottom: 16px;
  }

  .gallery-showcase__head {
    display: block;
  }

  .gallery-showcase__head p {
    margin-top: 16px;
    text-align: left;
  }

  .gallery-filters {
    gap: 8px;
    margin-bottom: 24px;
  }

  .gallery-filter {
    min-width: 0;
    padding: 9px 15px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-card,
  .gallery-card img {
    min-height: 190px;
  }

  .gallery-card__overlay {
    right: 13px;
    bottom: 13px;
    left: 13px;
  }

  .gallery-card__overlay strong {
    font-size: 14px;
  }

  .gallery-cta__box {
    display: block;
    padding: 36px 26px;
  }

  .gallery-cta__box .brand-btn {
    margin-top: 24px;
  }
}

@media (max-width: 479px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card img {
    min-height: 225px;
  }
}
