:root {
  --gallery-orange: #ed6818;
  --gallery-ink: #18233a;
  --gallery-muted: #687183;
}

body { background: #fff; }

.kloud-header {
  position: relative;
  z-index: 50;
  background: rgba(255, 250, 244, .96);
  border-bottom: 1px solid rgba(23, 40, 86, .08);
}
.kloud-header .navbar { min-height: 77px; }
.kloud-header .navbar-brand { padding: 0; margin-right: 20px; }
.kloud-logo img { display: block; width: 200px; height: auto; }
.kloud-header .nav-link {
  position: relative;
  padding: 10px 12px !important;
  color: #172856;
  font-size: 14px;
  font-weight: 600;
  transition: .25s ease;
}
.kloud-header .nav-link:hover,
.kloud-header .nav-link.active { color: var(--gallery-orange); }
.kloud-header .nav-link.active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 2px;
  background: var(--gallery-orange);
}
.kloud-header .navbar-toggler {
  border: 1px solid rgba(23, 40, 86, .15);
  border-radius: 10px;
  padding: 7px 9px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 40, 86, .08);
}
.kloud-header .navbar-toggler:focus { box-shadow: none; }
.kloud-header .navbar-toggler span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #172856;
}
.header-action { display: flex; align-items: center; gap: 16px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #172856;
  text-decoration: none;
}
.phone-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0e4;
  color: var(--gallery-orange);
}
.header-phone small { display: block; color: #7a8396; font-size: 12px; }
.header-phone strong { display: block; font-size: 14px; white-space: nowrap; }
.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #172856;
  border-radius: 6px;
  background: var(--gallery-orange);
  color: #172856;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: .25s ease;
}
.header-btn:hover { background: #172856; color: #fff; }

.gallery-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(237, 104, 24, .08), transparent 24%),
    linear-gradient(110deg, #fffaf6 0%, #fff 58%, #fff3ea 100%);
}

.gallery-hero .container { position: relative; z-index: 2; height: 100%; }
.gallery-hero-grid {
  height: 100%;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
}
.gallery-hero-content { padding: 28px 0 24px; }
.gallery-eyebrow,
.gallery-kicker {
  color: var(--gallery-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.gallery-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.gallery-eyebrow span {
  width: 24px;
  height: 2px;
  background: var(--gallery-orange);
}
.gallery-hero h1 {
  color: var(--gallery-ink);
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -2.5px;
}
.gallery-hero h1 span { color: var(--gallery-orange); }
.gallery-intro {
  max-width: 560px;
  margin: 16px 0 20px;
  color: var(--gallery-muted);
  font-size: 16px;
  line-height: 1.65;
}
.gallery-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 7px;
  background: var(--gallery-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(237, 104, 24, .18);
}
.gallery-hero-link i { transition: transform .2s ease; }
.gallery-hero-link:hover { color: #fff; }
.gallery-hero-link:hover i { transform: translateX(4px); }

.gallery-hero-visual {
  position: relative;
  height: 100%;
}
.gallery-hero-dots {
  position: absolute;
  width: 260px;
  height: 260px;
  right: 20px;
  bottom: 28px;
  border: 1px dashed rgba(237, 104, 24, .18);
  border-radius: 50%;
}
.gallery-hero-photo {
  position: absolute;
  width: 68%;
  height: 100%;
  right: -2%;
  bottom: 0;
  overflow: hidden;
  border-radius: 46% 46% 0 0;
  background: #edf0f5;
}
.gallery-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.gallery-float-card {
  position: absolute;
  z-index: 3;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 220px;
  min-height: 68px;
  padding: 9px 12px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(31, 45, 70, .12);
}
.gallery-float-card-top { top: 82px; }
.gallery-float-card-middle { top: 158px; left: 22px; }
.gallery-float-card-bottom { bottom: 58px; left: 3px; }
.gallery-float-card strong,
.gallery-float-card small { display: block; }
.gallery-float-card strong { color: var(--gallery-ink); font-size: 13px; line-height: 1.15; }
.gallery-float-card small { margin-top: 3px; color: var(--gallery-muted); font-size: 10px; }
.gallery-float-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0e7;
  color: var(--gallery-orange);
  font-size: 16px;
}
.gallery-float-icon-blue { background: #eaf3ff; color: #4b86d8; }
.gallery-float-icon-green { background: #e7f8ee; color: #42a66a; }
.gallery-hero-badge {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #182f63;
  color: #fff;
}
.gallery-hero-badge strong {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #ffdc99;
  color: #182f63;
  font-family: Georgia, serif;
  font-size: 22px;
}
.gallery-hero-badge span { font-size: 11px; line-height: 1.3; }
.gallery-hero-badge b { color: #ffc06d; }
.gallery-hero-badge i { margin-left: auto; color: #ffc06d; }

.gallery-section { padding: 72px 0 90px; }
.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.gallery-heading h2 {
  color: var(--gallery-ink);
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -1.4px;
}
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-filter {
  border: 1px solid #e8ebf0;
  border-radius: 999px;
  padding: 9px 16px;
  background: #fff;
  color: #596174;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.gallery-filter:hover,
.gallery-filter.active {
  border-color: var(--gallery-orange);
  background: var(--gallery-orange);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 18px;
}
.gallery-card {
  min-width: 0;
  opacity: 1;
  transform: scale(1);
  transition: opacity .25s ease, transform .25s ease;
}
.gallery-card.hidden { display: none; }
.gallery-card-wide { grid-column: span 1; }
.gallery-card-tall { grid-row: span 1; }
.gallery-open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #edf0f5;
  cursor: zoom-in;
}
.gallery-open img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-card-tall .gallery-open img { object-position: top center; }
.gallery-open::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(10, 18, 34, .82));
  opacity: .9;
}
.gallery-open:hover img { transform: scale(1.045); }
.gallery-overlay {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 18px;
  color: #fff;
  text-align: left;
}
.gallery-overlay span {
  display: block;
  margin-bottom: 4px;
  color: #ffc49c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.gallery-overlay strong { font-size: 17px; }
.gallery-overlay i {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}

.gallery-lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 90px;
  background: rgba(12, 19, 32, .92);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}
.gallery-lightbox.open { opacity: 1; visibility: visible; }
.gallery-lightbox figure {
  max-width: 1100px;
  max-height: 82vh;
  margin: 0;
  text-align: center;
}
.gallery-lightbox figure img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.gallery-lightbox figcaption {
  margin-top: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
}
.gallery-lightbox-close { right: 28px; top: 28px; }
.gallery-lightbox-prev { left: 28px; top: 50%; }
.gallery-lightbox-next { right: 28px; top: 50%; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 991px) {
  .kloud-header .navbar-collapse {
    padding: 12px 0 18px;
    background: rgba(255, 250, 244, .98);
  }
  .kloud-header .nav-link { padding: 9px 0 !important; }
  .kloud-header .nav-link.active::after { right: auto; width: 42px; left: 0; }
  .header-action {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(23, 40, 86, .1);
    justify-content: space-between;
  }
  .gallery-hero { height: 400px; }
  .gallery-hero-grid { grid-template-columns: 56% 44%; }
  .gallery-hero h1 { font-size: 42px; }
  .gallery-float-card { width: 190px; }
  .gallery-float-card-top { top: 62px; }
  .gallery-float-card-middle { top: 138px; left: 8px; }
  .gallery-float-card-bottom { bottom: 78px; }
  .gallery-hero-photo { width: 82%; right: -12%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-card-wide { grid-column: span 1; }
  .gallery-card-tall { grid-row: span 1; }
}

@media (max-width: 650px) {
  .header-action { align-items: stretch; flex-direction: column; gap: 12px; }
  .header-phone { justify-content: center; }
  .header-btn { justify-content: center; }
  .gallery-hero { height: 460px; align-items: flex-start; }
  .gallery-hero-grid { grid-template-columns: 1fr; }
  .gallery-hero-content { position: relative; z-index: 5; height: 240px; padding-top: 38px; }
  .gallery-hero h1 { font-size: 38px; letter-spacing: -1.5px; }
  .gallery-intro { max-width: 390px; font-size: 14px; }
  .gallery-hero-link { padding: 10px 14px; }
  .gallery-hero-visual { position: absolute; width: 100%; height: 220px; left: 0; bottom: 0; }
  .gallery-hero-photo { width: 58%; height: 220px; right: 0; border-radius: 60% 60% 0 0; }
  .gallery-float-card { width: 180px; min-height: 58px; }
  .gallery-float-card-top { top: 12px; left: 0; }
  .gallery-float-card-middle { top: 78px; left: 18px; }
  .gallery-float-card-bottom { display: none; }
  .gallery-float-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .gallery-float-card strong { font-size: 11px; }
  .gallery-float-card small { font-size: 9px; }
  .gallery-hero-badge { right: 0; bottom: 8px; min-width: 170px; }
  .gallery-section { padding: 52px 0 65px; }
  .gallery-heading { align-items: flex-start; flex-direction: column; }
  .gallery-filters { width: 100%; }
  .gallery-filter { flex: 1 1 auto; padding-inline: 10px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .gallery-card-wide { grid-column: span 1; }
  .gallery-lightbox { padding: 70px 16px; }
  .gallery-lightbox-prev { left: 12px; }
  .gallery-lightbox-next { right: 12px; }
  .gallery-lightbox-prev,
  .gallery-lightbox-next { width: 42px; height: 42px; }
}
