/* Sector gallery page
==================================== */
.gallery-hero.title-pages--about::before {
  background:
    linear-gradient(90deg, rgba(10, 27, 47, 0.58) 0%, rgba(10, 27, 47, 0.12) 58%, transparent 100%),
    linear-gradient(0deg, rgba(10, 27, 47, 0.55) 0%, transparent 48%);
}

.sector-gallery {
  position: relative;
  overflow: hidden;
  padding: 110px 0 124px;
  background:
    linear-gradient(rgba(23, 37, 57, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 37, 57, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, #f8fdfc 0%, #eef6f6 100%);
  background-size: 54px 54px, 54px 54px, auto;
}

.sector-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 7%, rgba(97, 221, 197, 0.17), transparent 25%),
    radial-gradient(circle at 94% 74%, rgba(26, 68, 91, 0.08), transparent 25%);
}

.sector-gallery__shape {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(97, 221, 197, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.sector-gallery__shape::before,
.sector-gallery__shape::after {
  content: "";
  position: absolute;
  border: inherit;
  border-radius: inherit;
}

.sector-gallery__shape::before {
  inset: 38px;
}

.sector-gallery__shape::after {
  inset: 78px;
}

.sector-gallery__shape--right {
  top: 130px;
  right: -235px;
}

.sector-gallery__shape--left {
  bottom: 80px;
  left: -260px;
}

.sector-gallery .main-container {
  position: relative;
  z-index: 1;
}

.sector-gallery__head {
  display: grid;
  max-width: 830px;
  margin-bottom: 48px;
  gap: 20px;
}

.sector-gallery__title {
  gap: 16px;
}

.sector-gallery__title .title-hero__mark {
  --cube-size: 13px;
  flex: 0 0 auto;
}

.sector-gallery__title .title-hero__mark span {
  background: #61ddc5;
}

.sector-gallery__title h2 {
  margin: 0;
  color: #172539;
  font-family: "font_bold";
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.2;
}

.sector-gallery__title h2 span {
  display: block;
  margin-bottom: 8px;
  color: #2fbba0;
  font-family: "font_bold";
  font-size: 15px;
  line-height: 1.4;
}

.sector-gallery__head > p {
  max-width: 730px;
  margin: 0;
  color: #687582;
  font-family: "font_medium";
  font-size: 16px;
  line-height: 2;
}

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

.gallery-page__empty {
  margin: 0;
  padding: 42px 24px;
  border: 1px solid rgba(23, 37, 57, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  color: #687582;
  font-family: "font_medium";
  font-size: 17px;
  text-align: center;
}

.sector-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 4 / 4.8;
  border-radius: 22px;
  background: #0d2033;
  isolation: isolate;
  box-shadow: 0 18px 44px rgba(23, 37, 57, 0.13);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.sector-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: inherit;
  pointer-events: none;
}

.sector-card:hover,
.sector-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 28px 58px rgba(23, 37, 57, 0.2);
}

.sector-card__details {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.sector-card__details:hover,
.sector-card__details:focus {
  color: #fff;
  text-decoration: none;
}

.sector-card__details > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.sector-card:hover .sector-card__details > img,
.sector-card:focus-within .sector-card__details > img {
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.075);
}

.sector-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 18, 31, 0.08) 24%, rgba(7, 20, 35, 0.4) 58%, rgba(7, 20, 35, 0.96) 100%),
    linear-gradient(90deg, rgba(7, 20, 35, 0.36), transparent 48%);
}

.sector-card__content {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 48px;
  max-width: calc(100% - 94px);
  text-align: right;
}

.sector-card__content small {
  display: block;
  margin-bottom: 7px;
  color: #61ddc5;
  font-family: "font_bold";
  font-size: 11px;
  line-height: 1.5;
}

.sector-card__content strong {
  display: block;
  color: #fff;
  font-family: "font_bold";
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.45;
}

.sector-card__gallery-button {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  left: 24px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  overflow: hidden;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  border-radius: 999px;
  background: #61ddc5;
  color: #10253a;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 12px 25px rgba(4, 18, 31, 0.22);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, transform 0.25s ease;
}

.sector-card__gallery-button i {
  width: 16px;
  height: 16px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.sector-card__gallery-button span {
  width: 0;
  overflow: hidden;
  font-family: "font_bold";
  font-size: 11px;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.22s ease;
}

.sector-card__gallery-button:hover,
.sector-card__gallery-button:focus-visible {
  width: 132px;
  justify-content: flex-start;
  gap: 9px;
  padding-inline: 18px;
  background: #fff;
  transform: translateY(-2px);
}

.sector-card__gallery-button:hover span,
.sector-card__gallery-button:focus-visible span {
  width: 62px;
  opacity: 1;
}

.sector-card__details:focus-visible,
.sector-card__gallery-button:focus-visible,
.sector-lightbox button:focus-visible {
  outline: 3px solid #61ddc5;
  outline-offset: 3px;
}

/* Sector lightbox
==================================== */
.sector-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sector-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sector-lightbox__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(4, 13, 23, 0.91);
  cursor: zoom-out;
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
}

.sector-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #0c1c2d;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.52);
  opacity: 0;
  transform: translateY(24px) scale(0.975);
  transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.sector-lightbox.is-open .sector-lightbox__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sector-lightbox__topbar {
  display: grid;
  min-height: 68px;
  padding: 12px 16px 12px 22px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.sector-lightbox__topbar p {
  display: flex;
  margin: 0;
  justify-self: start;
  align-items: center;
  gap: 7px;
  direction: ltr;
  color: rgba(255, 255, 255, 0.66);
  font-family: "font_medium";
  font-size: 13px;
}

.sector-lightbox__topbar p i {
  color: rgba(255, 255, 255, 0.28);
  font-style: normal;
}

.sector-lightbox__topbar > span {
  color: #61ddc5;
  font-family: "font_bold";
  font-size: 13px;
  text-align: center;
}

.sector-lightbox__close,
.sector-lightbox__nav {
  display: inline-flex;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.sector-lightbox__close {
  width: 42px;
  height: 42px;
  justify-self: end;
}

.sector-lightbox__stage {
  display: grid;
  min-height: 320px;
  padding: 0 18px;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 16px;
}

.sector-lightbox__status {
  display: none;
  min-height: 52px;
  padding: 18px 24px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  font-family: "font_medium";
  font-size: 14px;
  text-align: center;
}

.sector-lightbox.is-loading .sector-lightbox__status {
  display: flex;
}

.sector-lightbox.is-loading .sector-lightbox__stage,
.sector-lightbox.is-loading .sector-lightbox__dots {
  display: none;
}

.sector-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.sector-lightbox__stage img {
  width: 100%;
  height: min(66vh, 680px);
  display: block;
  border-radius: 14px;
  background: #071523;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.18s ease;
  user-select: none;
}

.sector-lightbox__stage img.is-changing {
  opacity: 0.18;
}

.sector-lightbox__nav {
  width: 50px;
  height: 50px;
}

.sector-lightbox__close:hover,
.sector-lightbox__nav:hover {
  background: #61ddc5;
  color: #10253a;
  transform: scale(1.05);
}

.sector-lightbox__dots {
  display: flex;
  min-height: 52px;
  padding: 15px 20px 19px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sector-lightbox__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.sector-lightbox__dots button.is-active {
  width: 28px;
  background: #61ddc5;
}

body.sector-gallery-open {
  overflow: hidden;
}

@media (max-width: 1199px) {
  .sector-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sector-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sector-card {
    aspect-ratio: 4 / 4.65;
  }

  .sector-card__content strong {
    font-size: 21px;
  }
}

@media (max-width: 767px) {
  .sector-gallery {
    padding: 76px 0 86px;
  }

  .sector-gallery .main-container {
    width: 92%;
  }

  .sector-gallery__head {
    margin-bottom: 34px;
  }

  .sector-lightbox {
    padding: 10px;
  }

  .sector-lightbox__dialog {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .sector-lightbox__topbar {
    grid-template-columns: 1fr minmax(0, 1.5fr) 1fr;
  }

  .sector-lightbox__topbar > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sector-lightbox__stage {
    position: relative;
    display: block;
    padding: 0 10px;
  }

  .sector-lightbox__stage img {
    height: 62vh;
    height: 62dvh;
  }

  .sector-lightbox__nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 44px;
    height: 44px;
    background: rgba(7, 21, 35, 0.78);
    transform: translateY(-50%);
  }

  .sector-lightbox__nav:hover {
    transform: translateY(-50%) scale(1.04);
  }

  .sector-lightbox__nav--prev {
    right: 20px;
  }

  .sector-lightbox__nav--next {
    left: 20px;
  }
}

@media (max-width: 560px) {
  .sector-gallery__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sector-card {
    aspect-ratio: 1 / 1.05;
    border-radius: 19px;
  }

  .sector-card__content {
    right: 22px;
    bottom: 22px;
  }

  .sector-card__content strong {
    font-size: 21px;
  }

  .sector-card__gallery-button {
    bottom: 22px;
    left: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sector-gallery *,
  .sector-gallery *::before,
  .sector-gallery *::after,
  .sector-lightbox *,
  .sector-lightbox *::before,
  .sector-lightbox *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
