/* ==========================================
   COMITE
   ========================================== */

.comite {
  position: relative;
  padding: 100px 0;
  overflow: hidden;

  background: #f5f7fa;
}

/* ==========================================
   TITLE
   ========================================== */

.comite__title {
  margin: 0 0 60px;
}

.comite__title-light {
  display: block;

  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;

  color: #7d8ca1;
}

.comite__title-regular {
  display: block;

  margin-top: 10px;

  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.1;
  font-weight: 700;

  color: #10243e;
}

/* ==========================================
   GALLERY
   ========================================== */

.comite__gallery {
  position: relative;
  width: 90%;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ==========================================
   SLIDE
   ========================================== */

.comite__slide {
  position: relative;
  overflow: hidden;

  min-height: 420px;

  border-radius: 24px;

  background: #10243e;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.comite__slide:hover {
  transform: translateY(-6px);

  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

/* ==========================================
   VIDEO CONTENT
   ========================================== */

.comite__video-content {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ==========================================
   VIDEO
   ========================================== */

.comite__video {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 420px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 36px;

  background-size: cover;
  background-position: center;

  overflow: hidden;
}

/* ==========================================
   PLAY BUTTON
   ========================================== */

.comite__play-button {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 82px;
  height: 82px;

  border-radius: 50%;

  transform: translate(-50%, -50%);

  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);

  border: 2px solid rgba(255, 255, 255, 0.4);

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.comite__play-button::before {
  content: "";

  position: absolute;
  top: 50%;
  left: 54%;

  transform: translate(-50%, -50%);

  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #ffffff;
}

.comite__slide:hover .comite__play-button {
  transform: translate(-50%, -50%) scale(1.08);

  background: rgba(198, 40, 40, 0.85);
}

/* ==========================================
   VIDEO TITLE
   ========================================== */

.comite__video-title {
  position: relative;
  z-index: 3;

  display: block;

  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 600;

  color: #ffffff;
}

/* ==========================================
   OVERLAYS
   ========================================== */

.comite__veil,
.comite__gradient {
  position: absolute;
  inset: 0;
}

.comite__veil {
  z-index: 1;

  background: rgba(0, 0, 0, 0.2);
}

.comite__gradient {
  z-index: 2;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(5, 15, 28, 0.15) 45%,
    rgba(5, 15, 28, 0.88) 100%
  );
}

/* ==========================================
   CONTROLS
   ========================================== */

.comite__control {
  position: absolute;
  top: 50%;

  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  cursor: pointer;

  background: #ffffff;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

  transform: translateY(-50%);

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.comite__control:hover {
  transform: translateY(-50%) scale(1.08);

  background: #c62828;
}

.comite__control--prev {
  left: 30px;
}

.comite__control--next {
  right: 30px;
}

.comite__control--prev img {
  transform: rotate(180deg);
}

.comite__control-icon {
  width: 16px;
  height: auto;

  transition: filter 0.3s ease;
}

.comite__control:hover .comite__control-icon {
  filter: brightness(0) invert(1);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1200px) {
  .comite__gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .comite {
    padding: 70px 0;
  }

  .comite__gallery {
    width: calc(100% - 40px);

    grid-template-columns: 1fr;
    gap: 22px;
  }

  .comite__slide,
  .comite__video {
    min-height: 360px;
    height: 360px;
  }

  .comite__video {
    padding: 26px;
  }

  .comite__video-title {
    font-size: 1.1rem;
  }

  .comite__play-button {
    width: 70px;
    height: 70px;
  }

  .comite__control {
    width: 50px;
    height: 50px;
  }

  .comite__control--prev {
    left: 12px;
  }

  .comite__control--next {
    right: 12px;
  }
}

@media (max-width: 480px) {
  .comite__title-regular {
    font-size: 2rem;
  }

  .comite__slide,
  .comite__video {
    min-height: 320px;
    height: 320px;
  }
}
