/* =====================================================
   IMAGE SHOWCASE
===================================================== */

.image-showcase {

  padding: 45px 0 100px;

  background: white;
}


.image-section-heading {

  text-align: center;

  max-width: 700px;

  margin: 0 auto 60px;
}


.image-section-heading span {

  display: block;

  margin-bottom: 12px;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 3px;

  color: #075985;
}


.image-section-heading h2 {

  margin: 0 0 15px;

  font-size: clamp(35px, 5vw, 55px);

  color: #063f63;
}


.image-section-heading p {

  margin: 0;

  font-size: 16px;

  color: #667085;
}



/* =====================================================
   IMAGE GRID
===================================================== */

.image-grid {
  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 22px;
}



/* =====================================================
   IMAGE CARD
===================================================== */

.image-card {
  position: relative;

  background: white;

  border: 1px solid #e4edf2;

  border-radius: 16px;

  overflow: hidden;

  cursor: pointer;

  box-shadow:
    0 8px 25px rgba(0,0,0,0.06);

  opacity: 0;

  transform: translateY(50px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    box-shadow 0.35s ease;
}


.image-card.visible {
  opacity: 1;

  transform: translateY(0);
}


.image-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 18px 40px rgba(0,0,0,0.12);
}



/* =====================================================
   IMAGE THUMBNAIL
===================================================== */

.image-thumbnail {
  position: relative;

  width: 100%;

  height: 270px;

  overflow: hidden;

  background: #f4f7f9;
}


.image-thumbnail img {
  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 0.7s
    cubic-bezier(.16,1,.3,1);
}


.image-card:hover
.image-thumbnail img {
  transform: scale(1.08);
}



/* =====================================================
   IMAGE NUMBER
===================================================== */

.image-card-number {
  position: absolute;

  top: 15px;

  right: 17px;

  font-size: 42px;

  line-height: 1;

  font-weight: 900;

  color:
    rgba(255,255,255,0.35);

  transition:
    transform 0.4s ease;
}


.image-card:hover
.image-card-number {
  transform: translateY(-3px);
}



/* =====================================================
   CARD CONTENT
===================================================== */

.image-card-content {

  padding:
    25px 28px 28px;
}


.image-card-content span {

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 2px;

  color: #075985;
}


.image-card-content h3 {

  margin:
    8px 0 8px;

  font-size: 23px;

  color: #063f63;
}


.image-card-content p {

  margin: 0;

  font-size: 14px;

  line-height: 1.6;

  color: #667085;
}



/* =====================================================
   IMAGE MODAL
===================================================== */

.image-modal {

  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 40px;

  background:
    rgba(0,0,0,0.78);

  opacity: 0;

  visibility: hidden;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}


.image-modal.active {

  opacity: 1;

  visibility: visible;
}


.image-modal-content {

  position: relative;

  max-width: 1100px;

  max-height: 85vh;

  transform:
    scale(0.65);

  opacity: 0;

  transition:
    transform 0.5s
      cubic-bezier(.16,1,.3,1),
    opacity 0.4s ease;
}


.image-modal.active
.image-modal-content {

  transform:
    scale(1);

  opacity: 1;
}


.image-modal-content img {

  display: block;

  max-width: 90vw;

  max-height: 82vh;

  width: auto;

  height: auto;

  object-fit: contain;

  border-radius: 12px;

  background: white;

  box-shadow:
    0 30px 80px
    rgba(0,0,0,0.45);
}



/* =====================================================
   CLOSE BUTTON
===================================================== */

.image-close {

  position: absolute;

  z-index: 5;

  top: -45px;

  right: 0;

  width: 38px;

  height: 38px;

  border: none;

  border-radius: 50%;

  background:
    rgba(255,255,255,0.15);

  color: white;

  font-size: 28px;

  line-height: 1;

  cursor: pointer;

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}


.image-close:hover {

  background:
    rgba(255,255,255,0.3);

  transform:
    rotate(90deg);
}



/* =====================================================
   HERO ANIMATION
===================================================== */

@keyframes imageHeroReveal {

  from {

    opacity: 0;

    transform:
      translateY(45px);
  }

  to {

    opacity: 1;

    transform:
      translateY(0);
  }

}



/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

  .image-grid {

    grid-template-columns:
      1fr;
  }


  .image-thumbnail {

    height: 380px;
  }

}



/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

  .image-hero {

    min-height: 470px;
  }


  .image-hero .container {

    padding:
      80px 20px;
  }


  .image-hero h1 {

    font-size: 43px;
  }


  .image-hero p {

    font-size: 15px;
  }


  .image-showcase {

    padding:
      75px 0;
  }


  .image-section-heading {

    margin-bottom: 40px;
  }


  .image-grid {

    gap: 30px;
  }


  .image-thumbnail {

    height: 240px;
  }


  .image-view-button {

    width: 62px;

    height: 62px;

    font-size: 30px;
  }


  .image-card-content {

    padding:
      20px;
  }


  .image-card-content h3 {

    font-size: 20px;
  }


  .image-modal {

    padding:
      20px;
  }


  .image-modal-content {

    max-width: 96vw;

    max-height: 85vh;
  }


  .image-modal-content img {

    max-width: 96vw;

    max-height: 80vh;

    border-radius: 8px;
  }


  .image-close {

    top: -45px;

    right: 0;
  }

}