@font-face {
  font-family: "Ara Jozoor";
  src: url("/fonts/Ara.Jozoor-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

html.is-gallery-lightbox-open {
  overflow: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f4f7f4;
  color: #17282d;
  font-family: "Ara Jozoor", Tahoma, Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.gallery-hero {
  position: relative;
  min-height: min(54vh, 520px);
  padding: 22px clamp(18px, 4vw, 54px) 56px;
  background:
    linear-gradient(180deg, rgba(13, 25, 26, 0.28), rgba(13, 25, 26, 0.78)),
    url("/images/background-photo-optimized.jpg") center / cover no-repeat;
  color: #ffffff;
}

.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gallery-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  -webkit-backdrop-filter: blur(12px) saturate(126%);
  backdrop-filter: blur(12px) saturate(126%);
}

.gallery-logo img {
  display: block;
  width: auto;
  max-width: 150px;
  max-height: 40px;
  object-fit: contain;
}

.gallery-logo span {
  line-height: 1.2;
}

.gallery-nav-links a,
.gallery-filters a,
.gallery-share {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
  -webkit-backdrop-filter: blur(12px) saturate(126%);
  backdrop-filter: blur(12px) saturate(126%);
}

.gallery-hero-inner {
  display: grid;
  align-content: end;
  gap: 10px;
  max-width: 760px;
  min-height: calc(min(54vh, 520px) - 112px);
}

.gallery-hero-inner p,
.gallery-hero-inner h1,
.gallery-hero-inner span {
  margin: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.38);
}

.gallery-hero-inner p {
  color: #cafaea;
  font-size: 14px;
}

.gallery-hero-inner h1 {
  font-size: clamp(34px, 7vw, 76px);
  line-height: 1.05;
}

.gallery-hero-inner span {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.gallery-shell {
  width: min(1180px, calc(100% - 32px));
  margin: -32px auto 50px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.gallery-filters a {
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: #17434a;
  box-shadow: 0 12px 30px rgba(20, 38, 44, 0.08);
}

.gallery-filters a.is-active,
.gallery-filters a:hover,
.gallery-filters a:focus-visible {
  border-color: rgba(15, 118, 110, 0.52);
  background: #e6f4f1;
  color: #075e58;
}

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

.gallery-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid #d7e1e4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(20, 38, 44, 0.09);
}

.gallery-image-link {
  display: block;
  width: 100%;
  height: 260px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #eaf0ef;
  cursor: zoom-in;
  font: inherit;
  text-align: inherit;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
  object-position: center;
}

.gallery-image-link:focus-visible,
.gallery-share:focus-visible,
.gallery-lightbox-close:focus-visible {
  outline: 3px solid #f0b84a;
  outline-offset: 3px;
}

.gallery-card-body {
  display: grid;
  gap: 13px;
  padding: 16px;
}

.gallery-card h2,
.gallery-card p {
  margin: 0;
}

.gallery-card h2 {
  color: #102a2f;
  font-size: 19px;
  line-height: 1.35;
}

.gallery-card p {
  color: #65757c;
  font-size: 14px;
}

.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.gallery-tags span {
  padding: 4px 8px;
  border: 1px solid #dce8e7;
  border-radius: 999px;
  background: #f2f7f5;
  color: #42616a;
  font-size: 12px;
  line-height: 1.4;
}

.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.gallery-meta span {
  padding: 5px 8px;
  border: 1px solid #d7e1e4;
  border-radius: 999px;
  background: #f8fbfb;
  color: #65757c;
  font-size: 12px;
}

.gallery-share {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: rgba(15, 118, 110, 0.36);
  background: #0f766e;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.gallery-share.is-copied {
  background: #13795b;
}

.gallery-empty {
  padding: 34px;
  border: 1px solid #d7e1e4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(20, 38, 44, 0.08);
  text-align: center;
}

.gallery-empty h2,
.gallery-empty p {
  margin: 0;
}

.gallery-empty p {
  margin-top: 8px;
  color: #65757c;
}

.visitors-noscript-pixel {
  position: fixed;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

.gallery-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background: rgba(6, 22, 27, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}

.gallery-lightbox-frame {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 56px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.gallery-lightbox-frame img {
  display: block;
  width: 100%;
  height: min(72vh, 720px);
  max-height: calc(100vh - 218px);
  object-fit: contain;
  background: #09171d;
}

.gallery-lightbox-frame figcaption {
  padding: 16px clamp(16px, 3vw, 24px);
  border-top: 1px solid #d7e1e4;
}

.gallery-lightbox-frame h2,
.gallery-lightbox-frame p {
  margin: 0;
}

.gallery-lightbox-frame h2 {
  color: #102a2f;
  font-size: 20px;
  line-height: 1.35;
}

.gallery-lightbox-frame p {
  margin-top: 6px;
  color: #65757c;
  font-size: 14px;
}

.gallery-lightbox-close {
  position: fixed;
  z-index: 1001;
  inset: 18px 18px auto auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
  font: 30px/1 Tahoma, Arial, sans-serif;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

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

  .gallery-image-link {
    height: 230px;
  }

  .gallery-card img {
    max-height: 230px;
  }
}

@media (max-width: 620px) {
  .gallery-hero {
    min-height: 420px;
    padding-inline: 16px;
  }

  .gallery-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .gallery-logo,
  .gallery-nav-links {
    justify-content: center;
  }

  .gallery-shell {
    width: min(100% - 22px, 1180px);
  }

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

  .gallery-image-link {
    height: 220px;
  }

  .gallery-card img {
    max-height: 220px;
  }

  .gallery-card-body {
    padding: 14px;
  }

  .gallery-lightbox-frame {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 28px);
  }

  .gallery-lightbox-frame img {
    height: min(62vh, 520px);
    max-height: calc(100vh - 240px);
  }
}
