/* ========================= GALLERY SECTION ========================= */ 
/* =========================
GALLERY SECTION
========================= */

.gallery-section{
  width:100%;
  background:#ece5d6;
  padding:0;
  box-sizing:border-box;
}

.gallery-wrapper{
  width:100%;
  position:relative;
}

/* =========================
BIG IMAGE
========================= */

.gallery-main{
  width:100%;
  height:100vh; /* FULL SCREEN */
  overflow:hidden;
  position:relative;
}

.gallery-main::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:220px;

  /* OVERLAY */
  background:linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.70) 25%,
    rgba(0,0,0,0.35) 55%,
    rgba(0,0,0,0) 100%
  );

  pointer-events:none;
}

.gallery-main img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:0.5s ease;
}

/* =========================
BOTTOM CONTROLS
========================= */

.gallery-controls{
  position:absolute;
  bottom:28px;
  left:0;

  width:100%;
  z-index:10;

  display:grid;
  grid-template-columns: 1fr auto auto auto 1fr;

  align-items:center;
  gap:24px;

  padding:0 50px;
  box-sizing:border-box;
}

/* =========================
COUNTS
========================= */

.gallery-count{
  color:#fff;
  line-height:1;
  
}

.current-count{
  font-size:60px;
}

.total-count{
  justify-self:end;
  font-size:28px;
}

/* =========================
BUTTONS
========================= */

.gallery-btn{
  background:rgba(255,255,255,0.12);

  border:1px solid rgba(255,255,255,0.25);

  color:#fff;

  width:44px;
  height:44px;

  border-radius:50%;

  cursor:pointer;

  transition:0.3s ease;

  font-size:11px;
  letter-spacing:1px;

  backdrop-filter:blur(6px);
}

.gallery-btn:hover{
  background:#fff;
  color:#111;
}

/* =========================
PREVIEW IMAGE
========================= */

.gallery-preview{
  width:180px;
  height:90px;

  overflow:hidden;

  border-radius:8px;
  border:1px solid rgba(255,255,255,0.3);
}

.gallery-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:0.5s ease;
}

/* =========================
TABLET
========================= */

@media(max-width:991px){

  .gallery-main{
    height:85vh;
  }

  .gallery-controls{
    padding:0 24px;
    gap:18px;
    bottom:24px;
  }

  .current-count{
    font-size:42px;
  }

  .total-count{
    font-size:22px;
  }

  .gallery-preview{
    width:140px;
    height:70px;
  }

  .gallery-btn{
    width:38px;
    height:38px;
    font-size:10px;
  }
}
 /* ========================= MOBILE ========================= */ 
 /* ========================= MOBILE ========================= */ 
 @media(max-width:768px){ 
  html, body{ 
    overflow-x:hidden; 
  } 
  .gallery-section{ 
    padding:12px; 
    overflow:hidden; 
  } 
  .gallery-wrapper{ 
    width:100%; 
    overflow:hidden; 
  } 
  .gallery-main{ 
    height:260px; 
  } 
  /* REMOVE OVERLAY */
.gallery-main::after{
  display:none;
}
  .gallery-controls{ 
    width:100%; 
    display:grid; 
    grid-template-columns: 1fr auto auto 1fr; 
    grid-template-areas: "prev preview next next" "current . . total"; align-items:center; 
    gap:12px; 
    padding:18px 0 10px; 
    box-sizing:border-box; 

    position:relative;
  bottom:auto;
  left:auto;

  background:#ece5d6;

  padding:18px 0 10px;

  z-index:1;
  } 

  .gallery-btn{ 
    font-size:12px; 
     width:auto;
  height:auto;

  border:none;
  border-radius:0;

  background:none;
  backdrop-filter:none;

  color:#111;

  font-size:12px;
  } 

  /* MOBILE COUNTS */
.gallery-count{
  color:#111;
}

  #prevBtn{ 
    grid-area:prev; 
    justify-self:center; 
  } 
  .gallery-preview{ 
    grid-area:preview; 
    width:90px; 
    height:40px; 
    overflow:hidden; 
  } 
  .gallery-preview img{ 
    width:100%; 
    height:100%; 
    object-fit:cover; 
  } 
  #nextBtn{ 
    grid-area:next; 
    justify-self:center; 
  } 
  .current-count{ 
    grid-area:current; 
    font-size:12px; 
    line-height:1; 
  } 
  .total-count{ 
    grid-area:total; 
    font-size:12px; 
    line-height:1; 
    justify-self:end; 
    white-space:nowrap; 
  } 
}