
/* smile gallery */

.gallery-section{
    text-align:center;
}

.gallery-section h2{
    font-size:48px;
    margin-bottom:20px;
}

.gallery-section p{
    max-width:700px;
    margin:auto;
    color:#666;
    margin-bottom:50px;
}

/* ====== SLIDER ====== */
.slider-wrapper{
    position:relative;
}

.slider{
    display:flex;
    gap:20px;
    overflow-x:auto;
    scroll-behavior:smooth;
    padding-bottom:10px;
}

.slider::-webkit-scrollbar{
    display:none;
}

.slide{
    width:300px;
    min-width:300px;
    max-width:300px;
    height:420px;
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    flex-shrink:0;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
    transition:.4s;
    background:#fff;
}

.slide img{
    width:300px;
    min-width:300px;
    max-width:300px;
    height:100%;
    object-fit:cover;
    transition:.4s;
}

.slide:hover img{
    transform:scale(1.1);
}

/* ====== ARROWS ====== */
.arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.6);
    color:#fff;
    border:none;
    font-size:20px;
    width:45px;
    height:45px;
    border-radius:50%;
    cursor:pointer;
    z-index:10;
}

.arrow.left{ left:-20px; }
.arrow.right{ right:-20px; }

/* ====== MODAL ====== */
.gallery-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.75);
    backdrop-filter:blur(8px);
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:9999;
}

.gallery-modal.active{
    opacity:1;
    visibility:visible;
}

.gallery-modal-content{
    position:relative;
    width:90%;
    max-width:900px;
    overflow:hidden;
}

.gallery-modal-slider{
    display:flex;
    transition:.4s ease;
}

.gallery-modal-slide{
    min-width:100%;
}

.gallery-modal-slide img{
    width:100%;
    border-radius:12px;
}

.close{
    position:absolute;
    top:-40px;
    right:0;
    font-size:30px;
    color:#fff;
    cursor:pointer;
}

.gallery-modal-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    font-size:35px;
    color:#fff;
    cursor:pointer;
}

.gallery-modal-prev{ left:-50px; }
.gallery-modal-next{ right:-50px; }

/* ====== MOBILE ====== */
@media(max-width:768px){
    .arrow.left{ left:5px; }
    .arrow.right{ right:5px; }
    .gallery-modal-prev{ left:10px; }
    .gallery-modal-next{ right:10px; }
    .close{ top:10px; right:10px; }

    .image-item img {
      height: 300px;
    }

    .image-item-overlay strong {
      font-size: 18px;
    }

    .image-item-overlay {
      padding: 16px;
    }
}


/* ====== Other slide smile ====== */


.gallery {
  padding: 20px;
  text-align: center;
}

h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 20px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 10px;
}

.image-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  display: block;
}

.image-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.image-item-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, rgba(9, 30, 62, 0), rgba(9, 30, 62, 0.78));
  color: #fff;
  opacity: 0.96;
  pointer-events: none;
}

.image-item-detail-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
}

.image-item-overlay strong {
  font-family: 'Jost', sans-serif;
  font-size: 22px;
  line-height: 1.15;
}

.image-item-overlay small {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.image-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.image-item:hover img {
  transform: scale(1.1);
}

.image-item:hover .image-item-overlay {
  opacity: 1;
}

.image-item-detail-link:hover {
  color: #fff;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 28px;
  background:
    radial-gradient(circle at top, rgba(214, 177, 107, 0.14), transparent 28%),
    rgba(7, 18, 38, 0.82);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-panel {
  position: relative;
  width: min(1100px, 92vw);
  max-height: 88vh;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.96));
  border: 1px solid rgba(214, 177, 107, 0.28);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

.lightbox-content {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: calc(88vh - 180px);
  margin: 0 auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(9, 30, 62, 0.16);
}

.lightbox-meta {
  padding: 18px 10px 6px;
}

.lightbox-detail-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--dark);
  text-decoration: none;
}

.lightbox-detail-link strong {
  font-family: 'Jost', sans-serif;
  font-size: 30px;
  line-height: 1.1;
  color: var(--primary);
}

.lightbox-detail-link small {
  font-size: 15px;
  line-height: 1.7;
  color: #5e6778;
}

.lightbox-detail-link:hover {
  color: var(--dark);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(9, 30, 62, 0.08);
  color: var(--dark);
  font-size: 34px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

@media(max-width:768px){
  .lightbox {
    padding: 16px;
  }

  .lightbox-panel {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
  }

  .lightbox-content {
    max-height: calc(84vh - 28px);
    border-radius: 14px;
  }

  .lightbox-detail-link strong {
    font-size: 22px;
  }
}
