.ree-gallery {
  --ree-gallery-ink: #081a2b;
  --ree-gallery-panel: #0d2236;
  --ree-gallery-line: rgba(240, 247, 252, .18);
  --ree-gallery-paper: #f7fbfe;
  --ree-gallery-accent: #16a9e0;
  --ree-gallery-focus: #65d2f7;
  position: relative;
  z-index: 1;
  margin-top: 70px;
  overflow: hidden;
  color: var(--ree-gallery-paper);
  background: var(--ree-gallery-ink);
}

.ree-gallery *,
.ree-gallery-dialog * {
  box-sizing: border-box;
}

.ree-gallery__stage {
  position: relative;
  height: clamp(520px, 64svh, 660px);
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ree-gallery-ink);
}

.ree-gallery__swiper,
.ree-gallery__swiper .swiper-wrapper,
.ree-gallery__swiper .swiper-slide,
.ree-gallery__media {
  width: 100%;
  height: 100%;
}

.ree-gallery__media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ree-gallery-ink);
}

.ree-gallery--contain .ree-gallery__media::before {
  position: absolute;
  inset: -28px;
  content: "";
  background-image: var(--ree-gallery-image);
  background-position: center;
  background-size: cover;
  filter: blur(24px) saturate(.78);
  opacity: .42;
  transform: scale(1.06);
}

.ree-gallery__media::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 25, 42, .05) 36%, rgba(7, 25, 42, .9) 100%),
    linear-gradient(90deg, rgba(7, 25, 42, .3), transparent 34%, transparent 66%, rgba(7, 25, 42, .18));
}

.ree-gallery__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.001);
}

.ree-gallery--contain .ree-gallery__media img {
  object-fit: contain;
}

.ree-gallery__media img:not([src]) {
  visibility: hidden;
}

.ree-gallery__media img.is-loaded {
  animation: ree-gallery-reveal .32s ease both;
}

.ree-gallery__heading {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  left: calc(max(24px, calc((100vw - 1180px) / 2)) + 220px);
  text-align: start;
  pointer-events: none;
}

[dir="ltr"] .ree-gallery__heading {
  right: calc(max(24px, calc((100vw - 1180px) / 2)) + 220px);
  left: max(24px, calc((100vw - 1180px) / 2));
}

.ree-gallery__eyebrow {
  margin: 0 0 8px;
  color: #a7e3f8;
  font: 700 clamp(12px, 1.2vw, 14px)/1.5 "Cairo", "Plus Jakarta Sans", sans-serif;
}

.ree-gallery__heading h1 {
  max-width: 920px;
  margin: 0;
  color: var(--ree-gallery-paper);
  font: 750 clamp(28px, 4vw, 54px)/1.18 "Cairo", "Plus Jakarta Sans", sans-serif;
  letter-spacing: -.025em;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(2, 12, 21, .38);
}

.ree-gallery__status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 12px;
  padding: 5px 12px;
  border: 1px solid rgba(240, 247, 252, .26);
  border-radius: 8px;
  color: var(--ree-gallery-paper);
  background: rgba(7, 25, 42, .62);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.ree-gallery__nav,
.ree-gallery__fullscreen,
.ree-gallery__thumb,
.ree-gallery-dialog__close,
.ree-gallery-dialog__nav {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.ree-gallery__nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--ree-gallery-line);
  border-radius: 50%;
  color: var(--ree-gallery-paper);
  background: rgba(7, 25, 42, .62);
  box-shadow: 0 12px 32px rgba(2, 12, 21, .18);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.ree-gallery__nav span {
  display: block;
  font: 300 36px/1 Arial, sans-serif;
  transform: translateY(-1px);
}

.ree-gallery__nav--prev {
  right: 22px;
}

.ree-gallery__nav--next {
  left: 22px;
}

[dir="ltr"] .ree-gallery__nav--prev {
  right: auto;
  left: 22px;
}

[dir="ltr"] .ree-gallery__nav--next {
  right: 22px;
  left: auto;
}

.ree-gallery__nav:hover,
.ree-gallery__fullscreen:hover,
.ree-gallery-dialog__close:hover,
.ree-gallery-dialog__nav:hover {
  border-color: rgba(240, 247, 252, .5);
  background: rgba(7, 25, 42, .86);
}

.ree-gallery__nav:active,
.ree-gallery-dialog__nav:active {
  transform: translateY(-50%) scale(.96);
}

.ree-gallery__tools {
  position: absolute;
  z-index: 4;
  bottom: 34px;
  left: max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  gap: 8px;
}

.ree-gallery__meta {
  display: flex;
  min-height: 106px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(240, 247, 252, .08);
  background: var(--ree-gallery-ink);
}

.ree-gallery__meta .ree-gallery__heading,
.ree-gallery__meta .ree-gallery__tools {
  position: static;
}

.ree-gallery__meta .ree-gallery__heading {
  flex: 1;
}

.ree-gallery__meta .ree-gallery__heading h1 {
  font-size: clamp(25px, 3vw, 38px);
}

.ree-gallery__meta .ree-gallery__tools {
  flex: none;
}

[dir="ltr"] .ree-gallery__tools {
  right: max(24px, calc((100vw - 1180px) / 2));
  left: auto;
}

.ree-gallery__count,
.ree-gallery__fullscreen {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ree-gallery-line);
  border-radius: 10px;
  color: var(--ree-gallery-paper);
  background: rgba(7, 25, 42, .68);
  box-shadow: 0 10px 26px rgba(2, 12, 21, .16);
  backdrop-filter: blur(12px);
}

.ree-gallery__count {
  min-width: 64px;
  gap: 4px;
  padding: 0 12px;
  direction: ltr;
  font-size: 13px;
}

.ree-gallery__count b {
  color: #b8eafa;
}

.ree-gallery__fullscreen {
  gap: 8px;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 800;
  transition: background-color .2s ease, border-color .2s ease;
}

.ree-gallery__fullscreen span:first-child {
  font-size: 18px;
  line-height: 1;
}

.ree-gallery__thumbs {
  display: flex;
  gap: 10px;
  width: 100%;
  min-height: 86px;
  margin: 0;
  padding: 10px max(22px, calc((100vw - 1180px) / 2));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-top: 1px solid rgba(240, 247, 252, .08);
  scrollbar-color: rgba(240, 247, 252, .35) transparent;
  scrollbar-width: thin;
  scroll-padding-inline: max(22px, calc((100vw - 1180px) / 2));
  scroll-snap-type: inline proximity;
  background: var(--ree-gallery-panel);
}

.ree-gallery__thumb {
  position: relative;
  flex: 0 0 106px;
  width: 106px;
  height: 66px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  opacity: .62;
  scroll-snap-align: start;
  background: #17334b;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.ree-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ree-gallery__thumb img:not([src]) {
  visibility: hidden;
}

.ree-gallery__thumb:hover {
  opacity: .9;
}

.ree-gallery__thumb.is-active {
  border-color: var(--ree-gallery-accent);
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(22, 169, 224, .28);
}

.ree-gallery__thumb.is-active::after {
  position: absolute;
  right: 8px;
  bottom: 6px;
  left: 8px;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: #bcecff;
}

.ree-gallery button:focus-visible,
.ree-gallery-dialog button:focus-visible {
  outline: 3px solid var(--ree-gallery-focus);
  outline-offset: 3px;
}

.ree-gallery .swiper-button-disabled,
.ree-gallery-dialog .swiper-button-disabled {
  visibility: hidden;
  pointer-events: none;
}

.ree-gallery .swiper-lazy-preloader {
  border-color: rgba(240, 247, 252, .34);
  border-top-color: var(--ree-gallery-paper);
}

.ree-gallery-dialog {
  --ree-gallery-paper: #f7fbfe;
  --ree-gallery-focus: #65d2f7;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--ree-gallery-paper);
  background: #071725;
}

.ree-gallery-dialog::backdrop {
  background: rgba(3, 12, 20, .94);
  backdrop-filter: blur(8px);
}

.ree-gallery-dialog:not([open]) {
  display: none;
}

.ree-gallery-dialog__shell,
.ree-gallery-dialog__swiper,
.ree-gallery-dialog__swiper .swiper-wrapper,
.ree-gallery-dialog__swiper .swiper-slide,
.ree-gallery-dialog .swiper-zoom-container {
  width: 100%;
  height: 100%;
}

.ree-gallery-dialog__shell {
  position: relative;
  overflow: hidden;
}

.ree-gallery-dialog .swiper-slide {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #071725;
}

.ree-gallery-dialog .swiper-zoom-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ree-gallery-dialog .swiper-zoom-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.ree-gallery-dialog__close,
.ree-gallery-dialog__counter,
.ree-gallery-dialog__nav,
.ree-gallery-dialog__hint {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(240, 247, 252, .2);
  color: var(--ree-gallery-paper);
  background: rgba(7, 23, 37, .74);
  backdrop-filter: blur(14px);
}

.ree-gallery-dialog__close {
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  font: 300 32px/1 Arial, sans-serif;
}

[dir="rtl"] .ree-gallery-dialog__close {
  right: auto;
  left: max(18px, env(safe-area-inset-left));
}

.ree-gallery-dialog__counter {
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  display: flex;
  min-width: 72px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  direction: ltr;
  font-size: 13px;
  transform: translateX(-50%);
}

.ree-gallery-dialog__nav {
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  font: 300 38px/1 Arial, sans-serif;
  transform: translateY(-50%);
}

.ree-gallery-dialog__nav--prev {
  right: max(20px, env(safe-area-inset-right));
}

.ree-gallery-dialog__nav--next {
  left: max(20px, env(safe-area-inset-left));
}

[dir="ltr"] .ree-gallery-dialog__nav--prev {
  right: auto;
  left: max(20px, env(safe-area-inset-left));
}

[dir="ltr"] .ree-gallery-dialog__nav--next {
  right: max(20px, env(safe-area-inset-right));
  left: auto;
}

.ree-gallery-dialog__hint {
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  min-height: 38px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 11px;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: opacity .25s ease;
}

.ree-gallery-dialog.has-interacted .ree-gallery-dialog__hint {
  opacity: 0;
  pointer-events: none;
}

body.ree-gallery-dialog-open {
  overflow: hidden;
}

.pv-description-shell,
.ph-description-shell {
  position: relative;
}

.pv-description-shell.is-collapsed [data-description-content],
.ph-description-shell.is-collapsed [data-description-content] {
  max-height: 680px;
  overflow: hidden;
}

.pv-description-shell.is-collapsed::after,
.ph-description-shell.is-collapsed::after {
  position: absolute;
  right: 0;
  bottom: 52px;
  left: 0;
  height: 150px;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(247, 249, 252, 0), #f7f9fc 82%);
}

.pv-description-shell.is-expanded [data-description-content],
.ph-description-shell.is-expanded [data-description-content] {
  max-height: none;
}

.pv-description-shell.is-expanded::after,
.ph-description-shell.is-expanded::after {
  display: none;
}

.pv-description-toggle,
.ph-description-toggle {
  position: relative;
  z-index: 2;
  display: none;
  min-width: 160px;
  min-height: 46px;
  margin: 18px auto 0;
  padding: 9px 20px;
  border: 1px solid #0879b9;
  border-radius: 10px;
  color: #075b8b;
  background: #f7fbfe;
  font: 800 13px/1.4 "Cairo", "Plus Jakarta Sans", sans-serif;
  cursor: pointer;
}

.is-collapsed > .pv-description-toggle,
.is-expanded > .pv-description-toggle,
.is-collapsed > .ph-description-toggle,
.is-expanded > .ph-description-toggle {
  display: block;
}

.pv-description-toggle [data-less],
.ph-description-toggle [data-less] {
  display: none;
}

.is-expanded > .pv-description-toggle [data-more],
.is-expanded > .ph-description-toggle [data-more] {
  display: none;
}

.is-expanded > .pv-description-toggle [data-less],
.is-expanded > .ph-description-toggle [data-less] {
  display: inline;
}

body.ree-listing-experience .pv-info-box-wrapper {
  margin: 22px auto 26px;
  padding-inline: 18px;
}

body.ree-listing-experience .pv-info-box {
  max-width: 1180px;
}

body.ree-listing-experience .pv-main-content,
body.ree-listing-experience .ph-container {
  max-width: 1180px;
}

body.ree-listing-experience .pv-main-content {
  padding: 24px 16px 20px;
}

body.ree-listing-experience .pv-section,
body.ree-listing-experience .ph-section {
  margin-bottom: 28px;
}

body.ree-listing-experience .pv-section-title,
body.ree-listing-experience .ph-section-title {
  margin-bottom: 18px;
}

body.ree-listing-experience .pv-description-content,
body.ree-listing-experience .ph-desc {
  color: #34485d;
  line-height: 1.9;
}

body.ree-listing-experience .pv-description-content p,
body.ree-listing-experience .ph-desc p {
  margin-block: 0 14px;
}

body.ree-listing-experience .ph-keyfacts {
  max-width: 1180px;
  margin: 20px auto 28px;
}

body.ree-listing-experience .ph-kf-info,
body.ree-listing-experience .ph-kf-side {
  padding: 20px 22px;
}

body.ree-listing-experience .pv-info-label,
body.ree-listing-experience .ph-kf-label,
body.ree-listing-experience .map-form-note {
  color: #495f74;
}

body.ree-listing-experience .fpl-pill-count {
  color: #015f98;
}

body.ree-listing-experience .pv-info-delivery span,
body.ree-listing-experience .pv-pp-lbl,
body.ree-listing-experience .pv-breadcrumbs-inner {
  color: #52657a;
}

body.ree-listing-experience .pv-similar-btn {
  color: #075b8b;
}

body.ree-listing-experience .pv-phase-pagination,
body.ree-listing-experience #similar-projects .swiper-pagination {
  min-height: 28px;
}

body.ree-listing-experience .pv-phase-pagination .swiper-pagination-bullet,
body.ree-listing-experience #similar-projects .swiper-pagination-bullet {
  position: relative;
  width: 24px !important;
  height: 24px !important;
  margin: 0 2px !important;
  opacity: 1;
  background: transparent !important;
  transform: none !important;
}

body.ree-listing-experience .pv-phase-pagination .swiper-pagination-bullet::after,
body.ree-listing-experience #similar-projects .swiper-pagination-bullet::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: #8a9aab;
  transform: translate(-50%, -50%);
}

body.ree-listing-experience .pv-phase-pagination .swiper-pagination-bullet-active::after,
body.ree-listing-experience #similar-projects .swiper-pagination-bullet-active::after {
  background: #0277bd;
}

body.ree-listing-experience a[href*="wa.me"],
body.ree-listing-experience .pv-whatsapp-btn,
body.ree-listing-experience .ph-wa {
  --pv-green: #08783f;
}

@keyframes ree-gallery-reveal {
  from { opacity: .18; }
  to { opacity: 1; }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .ree-gallery__stage {
    height: clamp(430px, 50svh, 520px);
    min-height: 430px;
  }
}

@media (max-width: 720px) {
  .ree-gallery {
    margin-top: 60px;
  }

  .ree-gallery__stage {
    height: clamp(310px, 92vw, 430px);
    min-height: 310px;
  }

  .ree-gallery--contain .ree-gallery__stage {
    height: 250px;
    min-height: 250px;
  }

  .ree-gallery__media::after {
    background: linear-gradient(180deg, rgba(7, 25, 42, .03) 32%, rgba(7, 25, 42, .93) 100%);
  }

  .ree-gallery__heading {
    right: 16px;
    bottom: 22px;
    left: 120px;
  }

  [dir="ltr"] .ree-gallery__heading {
    right: 120px;
    left: 16px;
  }

  .ree-gallery__eyebrow {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .ree-gallery__heading h1 {
    font-size: clamp(21px, 6vw, 29px);
    line-height: 1.25;
  }

  .ree-gallery__status {
    min-height: 28px;
    margin-top: 7px;
    padding: 4px 9px;
    font-size: 10px;
  }

  .ree-gallery__nav {
    display: none;
  }

  .ree-gallery__tools {
    bottom: 20px;
    left: 14px;
    gap: 6px;
  }

  .ree-gallery__meta {
    min-height: 106px;
    gap: 12px;
    padding: 14px 16px;
  }

  .ree-gallery__meta .ree-gallery__heading {
    right: auto;
    bottom: auto;
    left: auto;
  }

  .ree-gallery__meta .ree-gallery__heading h1 {
    font-size: clamp(21px, 6vw, 26px);
  }

  .ree-gallery__meta .ree-gallery__status {
    margin-top: 6px;
  }

  .ree-gallery__meta .ree-gallery__tools {
    right: auto;
    bottom: auto;
    left: auto;
  }

  [dir="ltr"] .ree-gallery__tools {
    right: 14px;
    left: auto;
  }

  .ree-gallery__count {
    display: none;
  }

  .ree-gallery__fullscreen {
    width: 46px;
    min-height: 46px;
    padding: 0;
  }

  .ree-gallery__fullscreen span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .ree-gallery__thumbs {
    min-height: 74px;
    gap: 8px;
    padding: 9px 16px 11px;
    scroll-padding-inline: 16px;
  }

  .ree-gallery__thumb {
    flex-basis: 84px;
    width: 84px;
    height: 54px;
    border-radius: 7px;
  }

  .ree-gallery-dialog__nav {
    display: none;
  }

  .ree-gallery-dialog__close {
    width: 46px;
    height: 46px;
  }

  .ree-gallery-dialog__hint {
    max-width: calc(100vw - 32px);
    white-space: normal;
    text-align: center;
  }

  .pv-description-shell.is-collapsed [data-description-content],
  .ph-description-shell.is-collapsed [data-description-content] {
    max-height: 620px;
  }

  body.ree-listing-experience {
    padding-bottom: 82px;
  }

  body.ree-listing-experience .pv-info-box-wrapper {
    margin: 14px auto 18px;
    padding-inline: 12px;
  }

  body.ree-listing-experience .pv-main-content,
  body.ree-listing-experience .ph-container {
    padding-inline: 12px;
  }

  body.ree-listing-experience .pv-main-content {
    padding-block: 16px 14px;
  }

  body.ree-listing-experience .pv-section,
  body.ree-listing-experience .ph-section {
    margin-bottom: 20px;
  }

  body.ree-listing-experience .pv-section-title,
  body.ree-listing-experience .ph-section-title {
    margin-bottom: 14px;
    padding-bottom: 10px;
    font-size: 19px;
  }

  body.ree-listing-experience .pv-info-main {
    gap: 14px;
    padding: 16px;
  }

  body.ree-listing-experience .pv-info-details {
    padding-bottom: 14px;
  }

  body.ree-listing-experience .pv-info-form {
    padding: 12px 16px;
  }

  body.ree-listing-experience .ph-keyfacts-wrap {
    padding-inline: 10px;
  }

  body.ree-listing-experience .ph-keyfacts {
    margin: 12px auto 18px;
    padding: 4px;
  }

  body.ree-listing-experience .ph-kf-info,
  body.ree-listing-experience .ph-kf-side {
    gap: 12px;
    padding: 16px 14px;
  }

  body.ree-listing-experience #project-map .reem-map {
    min-height: 330px;
    border-radius: 14px;
  }

  body.ree-listing-experience #project-map .reem-card {
    padding: 18px 16px 16px;
    border-radius: 14px;
  }

  body.ree-listing-experience #project-map .reem-headline {
    margin-top: 10px;
    font-size: 20px;
  }

  body.ree-listing-experience #project-map .reem-sub {
    margin-bottom: 12px;
  }

  body.ree-listing-experience #project-map .reem-btn,
  body.ree-listing-experience .pv-info-cta a,
  body.ree-listing-experience .pv-info-cta button {
    min-height: 46px;
  }
}

@media (max-width: 380px) {
  .ree-gallery__stage {
    height: 330px;
  }

  .ree-gallery__heading {
    left: 76px;
  }

  [dir="ltr"] .ree-gallery__heading {
    right: 76px;
    left: 14px;
  }

  .ree-gallery__heading h1 {
    font-size: 20px;
  }

  .ree-gallery__fullscreen {
    width: 44px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ree-gallery *,
  .ree-gallery-dialog *,
  .pv-description-shell *,
  .ph-description-shell * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
