.ev-page {
  background: var(--navy);
}
html:has(.ev-page),
.ev-page,
.ev {
  overflow-x: clip;
}
.ev {
  display: block;
  color: #fff;
  background: var(--navy);
}
.ev img {
  display: block;
  width: 60px;
}

.ev-intro {
  padding: 19rem 0 0;
  text-align: center;
}
.ev-title {
  display: inline-block;
  position: relative;
  padding-bottom: 1.6rem;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--orange);
}
.ev-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5rem;
  height: 2px;
  margin-left: -2.5rem;
  background: var(--orange);
}
.ev-p {
  width: 80rem;
  max-width: calc(100% - 4rem);
  margin: 3rem auto 0;
  font-size: 16px;
  line-height: 2.9rem;
  text-align: center;
  color: #fff;
}
.ev-p + .ev-p {
  margin-top: 3.2rem;
}
.ev-p b {
  font-weight: 800;
}

/* ---------- categories ---------- */
.ev-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7rem;
  direction: ltr;
  width: 140.8rem;
  max-width: calc(100% - 4rem);
  height: 8.4rem;
  margin: 5.8rem auto 0;
  border-block: 1px solid rgba(255, 255, 255, 0.4);
}
.ev-tab {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #fff;
  font: 700 14px var(--fa);
  transition: color 0.35s var(--ease);
}
.ev-tab i {
  flex: none;
  width: 65px;
  height: 65px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  transition: transform 0.45s var(--ease);
}
.ev-tab p {
  max-width: 0;
  /* white-space: nowrap; */
  opacity: 0;
  /* transition:
    max-width 0.55s var(--ease),
    opacity 0.4s,
    margin 0.55s var(--ease); */
}
.ev-tab:hover i {
  transform: translateY(-0.3rem);
}
.ev-tab.is-on {
  color: var(--orange);
}
.ev-tab.is-on p {
  max-width: 18rem;
  margin-left: 1.6rem;
  opacity: 1;
}

.ev-tab.is-on img
{filter: brightness(0) saturate(100%)
          invert(48%) sepia(98%)
          saturate(2000%) hue-rotate(359deg)
          brightness(101%) contrast(105%);}
/* ---------- gallery ---------- */
.ev-gal {
  padding: 6rem 0 13rem;
}
.ev-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6.2rem 2.2rem;
  direction: ltr;
  width: 140.8rem;
  max-width: calc(100% - 4rem);
  margin-inline: auto;
}
.ev-card {
  --w: 29.8rem;
  --h: 30rem;
  width: var(--w);
}
.ev-card--w535 {
  --w: 53.5rem;
  --h: 30rem;
}
.ev-card--s209 {
  --w: 20.9rem;
  --h: 22.9rem;
}
.ev-card--m298 {
  --w: 29.8rem;
  --h: 30rem;
}
.ev-card--h298 {
  --w: 29.8rem;
  --h: 17.1rem;
}
.ev-card__n {
  display: block;
  margin-bottom: 1.2rem;
  font: 400 12px var(--en);
  color: #e5e7eb;
}
.ev-card__m {
  position: relative;
  display: block;
  width: 100%;
  height: var(--h);
  overflow: hidden;
  background: #0d2147;
}
.ev-card__m img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.ev-card__m::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 29, 61, 0.35));
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.ev-card__play {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: transform 0.45s var(--ease);
  transform-origin: 20% 50%;
}
.ev-card__m:hover img {
  transform: scale(1.06);
}
.ev-card__m:hover::after {
  opacity: 1;
}
.ev-card__m:hover .ev-card__play {
  transform: scale(1.25);
}
.ev-card__t {
  display: none;
}
.ev-card__d {
  display: block;
  margin-top: 1.2rem;
  font: 400 12px var(--en);
  letter-spacing: 0.02em;
  color: #e5e7eb;
}
.ev-card[hidden] {
  display: none;
}

/* ---------- phone / tablet ---------- */
@media (max-width: 999.98px) {
  .ev-intro {
    padding: 11.5rem 2rem 0;
    text-align: right;
  }

.ev-tab img {
    display: block;
    width: 50px;
}

  .ev-title {
    font-size: 18px;
    padding-bottom: 1.2rem;
  }
  .ev-title::after {
    left: auto;
    right: 0;
    margin-left: 0;
  }
  .ev-p {
    width: auto;
    max-width: none;
    margin: 2.4rem 0 0;
    font-size: 13px;
    line-height: 2.8rem;
    text-align: justify;
  }
  .ev-p + .ev-p {
    margin-top: 1rem;
  }
  
  .ev-tab{flex-shrink: 0;}
  .ev-tabs {
      width: auto;
        max-width: none;
        height: 7.6rem;
        margin: 3.6rem 0 0;
        gap: 20px;
        justify-content: space-between;
        padding-inline: 0.6rem;
        overflow: scroll;
  }
  .ev-tab i {
    width: 4rem;
    height: 4rem;
  }
  .ev-tab p {
    display: none;
  }
  .ev-gal {
    padding: 4.6rem 2rem 7rem;
  }
  .ev-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.4rem 1rem;
    width: auto;
    max-width: none;
    direction: rtl;
  }
  .ev-card,
  .ev-card--w535,
  .ev-card--s209,
  .ev-card--m298,
  .ev-card--h298 {
    --w: auto;
    --h: 29rem;
    width: auto;
    min-width: 0;
  }
  .ev-card--w535 {
    grid-column: 1 / -1;
    --h: 18.4rem;
  }
  .ev-card__n {
    display: none;
  }
  .ev-card__t {
    display: block;
    margin-top: 1rem;
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
  }
  .ev-card__d {
    margin-top: 0.8rem;
    text-align: right;
    direction: ltr;
    font-size: 1.3rem;
  }
  .ev-card__play {
    left: 0.8rem;
    bottom: 0.8rem;
    width: 2.2rem;
    height: 2.2rem;
  }
}

/* lightbox skin */
.fancybox__container {
  --fancybox-bg: rgba(6, 16, 36, 0.96);
  --fancybox-color: #fff;
  --fancybox-accent-color: var(--orange);
  font-family: var(--fa);
  z-index: 600;
}
.fancybox__caption {
  direction: rtl;
  text-align: center;
  padding-block: 1.4rem;
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: rgba(255, 255, 255, 0.9);
}
.site-header[data-theme="dark"].is-scrolled {
  background: #0A1D3D;
}
 .site-header[data-theme="dark"].is-scrolled  svg path {
  fill: #fff;
}
 .site-header[data-theme="dark"].is-scrolled  svg line {
  stroke: #fff;
}
 .site-header[data-theme="dark"].is-scrolled  svg line {
  stroke: #fff;
}
 .site-header[data-theme="dark"].is-scrolled   .logo-light{
  opacity: 1;
 }
  .site-header[data-theme="dark"].is-scrolled   .logo-dark{
  opacity: 0;
 }
 .site-header[data-theme="dark"].is-scrolled .lang-switch{
   color: #fff;
 }
 @media (min-width: 992px) and (max-width: 1200px) {
 .ev-p {
    width: 111rem;
    line-height: 160%;
  
}
 }
