/* =========================================================
   GALLERY PAGE
========================================================= */

/* -----------------------------------------
   Gallery Hero
----------------------------------------- */

.gentox-gallery-hero {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
}

.gentox-gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(13, 43, 27, 0.94) 0%,
      rgba(13, 43, 27, 0.78) 45%,
      rgba(13, 43, 27, 0.35) 100%
    ),
    url("../img/gallery/gallery-hero.jpg") center/cover no-repeat;
  z-index: 0;
}

.gentox-gallery-hero .container {
  position: relative;
  z-index: 2;
}

.gentox-gallery-hero .gentox-eyebrow {
  color: var(--gentox-lime);
}

.gentox-gallery-hero h1 {
  color: var(--gentox-white);
}

.gentox-gallery-hero h1 span {
  color: var(--gentox-lime);
}

.gentox-gallery-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 650px;
}

.gentox-gallery-decoration {
  position: absolute;
  right: 8%;
  bottom: -45px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.gentox-gallery-decoration::before,
.gentox-gallery-decoration::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.gentox-gallery-decoration::before {
  width: 170px;
  height: 170px;
}

.gentox-gallery-decoration::after {
  width: 110px;
  height: 110px;
}

.gentox-gallery-decoration i {
  position: relative;
  z-index: 2;
  font-size: 55px;
  color: rgba(255, 255, 255, 0.1);
  transform: rotate(-25deg);
}

/* -----------------------------------------
   Gallery Intro
----------------------------------------- */

.gentox-gallery-intro {
  background: var(--gentox-bg);
}

.gentox-gallery-intro .gentox-section-title {
  margin-bottom: 0;
}

.gentox-gallery-intro .gentox-section-description {
  max-width: 560px;
  margin-left: auto;
}

/* -----------------------------------------
   Gallery Filter
----------------------------------------- */

.gentox-gallery-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 45px;
}

.gentox-gallery-filter-btn {
  border: 1px solid var(--gentox-border);
  background: var(--gentox-white);
  color: var(--gentox-text);
  padding: 11px 22px;
  border-radius: 100px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--gentox-transition);
}

.gentox-gallery-filter-btn:hover {
  color: var(--gentox-primary);
  border-color: var(--gentox-primary);
  transform: translateY(-2px);
}

.gentox-gallery-filter-btn.active {
  background: var(--gentox-primary);
  border-color: var(--gentox-primary);
  color: var(--gentox-white);
  box-shadow: 0 8px 20px rgba(23, 107, 58, 0.18);
}

/* -----------------------------------------
   Gallery Grid
----------------------------------------- */

.gentox-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 18px;
}

.gentox-gallery-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--gentox-radius);
  background: var(--gentox-light-gray);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease;
}

.gentox-gallery-item-large {
  grid-column: span 2;
}

.gentox-gallery-item-tall {
  grid-row: span 2;
}

.gentox-gallery-item-wide {
  grid-column: span 2;
}

.gentox-gallery-item.is-hidden {
  display: none;
}

.gentox-gallery-item.is-visible {
  animation: gentoxGalleryShow 0.4s ease;
}

@keyframes gentoxGalleryShow {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* -----------------------------------------
   Gallery Link
----------------------------------------- */

.gentox-gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.gentox-gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gentox-gallery-item:hover .gentox-gallery-link img {
  transform: scale(1.08);
}

/* -----------------------------------------
   Gallery Overlay
----------------------------------------- */

.gentox-gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 25px;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(7, 28, 17, 0.18) 48%,
    rgba(7, 28, 17, 0.88) 100%
  );
  opacity: 0;
  transition: var(--gentox-transition);
}

.gentox-gallery-item:hover .gentox-gallery-overlay {
  opacity: 1;
}

.gentox-gallery-overlay-content {
  width: 100%;
  position: relative;
  transform: translateY(12px);
  transition: var(--gentox-transition);
}

.gentox-gallery-item:hover .gentox-gallery-overlay-content {
  transform: translateY(0);
}

.gentox-gallery-overlay-content > span {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--gentox-lime);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gentox-gallery-overlay-content h3 {
  margin: 0;
  padding-right: 55px;
  color: var(--gentox-white);
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.gentox-gallery-view {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gentox-white);
  color: var(--gentox-primary);
  font-size: 14px;
  transition: var(--gentox-transition);
}

.gentox-gallery-view:hover {
  background: var(--gentox-lime);
  color: var(--gentox-heading);
  transform: rotate(10deg);
}

/* -----------------------------------------
   Gallery CTA
----------------------------------------- */

.gentox-gallery-cta {
  background: var(--gentox-bg);
}

.gentox-gallery-cta-box {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 65px 75px;
  border-radius: var(--gentox-radius-xl);
  background: linear-gradient(
    120deg,
    var(--gentox-primary-dark),
    var(--gentox-primary)
  );
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.gentox-gallery-cta-box::before {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  right: -160px;
  top: -230px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gentox-gallery-cta-box::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -100px;
  bottom: -200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gentox-gallery-cta-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.gentox-gallery-cta-content .gentox-section-kicker {
  color: var(--gentox-lime);
}

.gentox-gallery-cta-content .gentox-section-kicker span {
  background: var(--gentox-lime);
}

.gentox-gallery-cta-content h2 {
  color: var(--gentox-white);
  font-family: "Poppins", sans-serif;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.15;
  font-weight: 700;
  margin: 15px 0 15px;
}

.gentox-gallery-cta-content h2 span {
  color: var(--gentox-lime);
}

.gentox-gallery-cta-content p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin-bottom: 28px;
}

.gentox-gallery-cta-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* -----------------------------------------
   CTA Icon
----------------------------------------- */

.gentox-gallery-cta-icon {
  width: 220px;
  height: 220px;
  flex: 0 0 220px;
  position: relative;
  z-index: 2;
}

.gentox-gallery-cta-icon-inner {
  width: 170px;
  height: 170px;
  margin: 25px auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gentox-gallery-cta-icon-inner i {
  color: var(--gentox-lime);
  font-size: 72px;
}

.gentox-cta-leaf {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
}

.gentox-cta-leaf i {
  font-size: 30px;
}

.leaf-one {
  top: 5px;
  right: 5px;
  transform: rotate(30deg);
}

.leaf-two {
  bottom: 5px;
  left: 5px;
  transform: rotate(-40deg);
}

/* -----------------------------------------
   Lightbox
----------------------------------------- */

body.gentox-lightbox-open {
  overflow: hidden;
}

.gentox-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.gentox-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gentox-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 15, 9, 0.92);
  backdrop-filter: blur(8px);
}

.gentox-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gentox-lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.gentox-lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gentox-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--gentox-transition);
}

.gentox-lightbox-close:hover {
  background: var(--gentox-white);
  color: var(--gentox-primary);
  transform: rotate(90deg);
}

.gentox-lightbox-caption {
  margin-top: 15px;
  color: var(--gentox-white);
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {
  .gentox-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 230px;
  }

  .gentox-gallery-item-large {
    grid-column: span 2;
  }

  .gentox-gallery-item-wide {
    grid-column: span 2;
  }

  .gentox-gallery-cta-box {
    padding: 55px;
  }
}

@media (max-width: 991.98px) {
  .gentox-gallery-hero {
    min-height: 400px;
  }

  .gentox-gallery-decoration {
    right: -40px;
    opacity: 0.7;
  }

  .gentox-gallery-intro .gentox-section-description {
    margin-left: 0;
    max-width: 700px;
  }

  .gentox-gallery-filter {
    margin-bottom: 35px;
  }

  .gentox-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 230px;
  }

  .gentox-gallery-item-large,
  .gentox-gallery-item-wide {
    grid-column: span 2;
  }

  .gentox-gallery-cta-box {
    padding: 50px;
  }

  .gentox-gallery-cta-icon {
    width: 170px;
    height: 170px;
    flex-basis: 170px;
  }

  .gentox-gallery-cta-icon-inner {
    width: 135px;
    height: 135px;
  }

  .gentox-gallery-cta-icon-inner i {
    font-size: 55px;
  }
}

@media (max-width: 767.98px) {
  .gentox-gallery-hero {
    min-height: 360px;
  }

  .gentox-gallery-decoration {
    right: -90px;
    bottom: -70px;
    transform: scale(0.75);
  }

  .gentox-gallery-filter {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    margin-left: -5px;
    margin-right: -5px;
    padding-left: 5px;
    padding-right: 5px;
    scrollbar-width: none;
  }

  .gentox-gallery-filter::-webkit-scrollbar {
    display: none;
  }

  .gentox-gallery-filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 18px;
    font-size: 12px;
  }

  .gentox-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 190px;
    gap: 10px;
  }

  .gentox-gallery-item-large,
  .gentox-gallery-item-wide {
    grid-column: span 2;
  }

  .gentox-gallery-overlay {
    opacity: 1;
    padding: 15px;
  }

  .gentox-gallery-overlay-content {
    transform: translateY(0);
  }

  .gentox-gallery-overlay-content h3 {
    font-size: 14px;
    padding-right: 40px;
  }

  .gentox-gallery-overlay-content > span {
    font-size: 9px;
    margin-bottom: 4px;
  }

  .gentox-gallery-view {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .gentox-gallery-cta-box {
    min-height: auto;
    padding: 40px 25px;
    border-radius: 22px;
    display: block;
  }

  .gentox-gallery-cta-content h2 {
    font-size: 30px;
  }

  .gentox-gallery-cta-icon {
    display: none;
  }

  .gentox-gallery-cta-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .gentox-gallery-cta-buttons .gentox-btn {
    width: 100%;
    justify-content: center;
  }

  .gentox-lightbox {
    padding: 15px;
  }

  .gentox-lightbox-content {
    max-width: 100%;
    width: 100%;
  }

  .gentox-lightbox-content img {
    max-height: 72vh;
  }

  .gentox-lightbox-close {
    top: -50px;
    right: 0;
  }
}

@media (max-width: 575.98px) {
  .gentox-gallery-hero {
    min-height: 330px;
  }

  .gentox-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
    gap: 12px;
  }

  .gentox-gallery-item,
  .gentox-gallery-item-large,
  .gentox-gallery-item-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gentox-gallery-item-tall {
    grid-row: span 1;
  }

  .gentox-gallery-overlay-content h3 {
    font-size: 16px;
  }

  .gentox-gallery-cta-box {
    padding: 35px 20px;
  }

  .gentox-gallery-cta-content h2 {
    font-size: 27px;
  }

  .gentox-lightbox-caption {
    font-size: 13px;
  }
}
