/* =========================================================
   FINAL FULL-WIDTH PHOTO GALLERY CAROUSEL
   ========================================================= */

#photo-gallery{
  width:100%;
  max-width:none;
  padding:30px !important;
  background:#fff !important;
  border:1px solid #e8ebf2 !important;
  border-radius:22px !important;
  box-shadow:0 16px 42px rgba(15,30,74,.10) !important;
}

#photo-gallery .gallery-heading{
  margin-bottom:20px;
}

#photo-gallery .gallery-shell{
  width:100%;
  background:#fff;
  border:1px solid #edf0f5;
  border-radius:20px;
  padding:18px;
  box-shadow:
    0 10px 28px rgba(15,30,74,.08),
    0 2px 8px rgba(15,30,74,.04);
}

#photo-gallery .gallery-layout{
  width:100% !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 190px !important;
  gap:18px !important;
  align-items:stretch;
}

#photo-gallery .gallery-main{
  min-width:0;
  display:flex;
  flex-direction:column;
}

#photo-gallery .featured{
  height:560px !important;
  min-height:560px !important;
  padding:6px !important;
  border-radius:18px !important;
  background:#fff !important;
  border:1px solid #e4e8ef !important;
  box-shadow:
    0 18px 38px rgba(15,30,74,.15),
    0 4px 12px rgba(15,30,74,.08) !important;
  overflow:hidden;
}

#photo-gallery .featured::before{
  display:none !important;
}

#photo-gallery .featured::after{
  inset:6px !important;
  border-radius:13px !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.15) !important;
}

#photo-gallery .featured img{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  object-fit:cover !important;
  object-position:center center;
  border-radius:13px !important;
  background:#f5f6f8 !important;
  transition:opacity .22s ease,transform .45s ease !important;
}

#photo-gallery .featured img.is-changing{
  opacity:.28;
  transform:scale(1.015);
}

#photo-gallery .featured:hover{
  transform:none !important;
  box-shadow:
    0 20px 44px rgba(15,30,74,.17),
    0 5px 14px rgba(15,30,74,.09) !important;
}

#photo-gallery .featured:hover img{
  transform:none !important;
  filter:none !important;
}

#photo-gallery .caption{
  left:6px !important;
  right:6px !important;
  bottom:6px !important;
  padding:42px 22px 18px !important;
  justify-content:flex-end !important;
  background:linear-gradient(to top,rgba(7,16,43,.64),rgba(15,30,74,.18),transparent) !important;
  border-radius:0 0 13px 13px !important;
}

#photo-gallery .caption strong{
  display:none !important;
}

#photo-gallery .caption span{
  font-size:14px !important;
  font-weight:700 !important;
  letter-spacing:.03em;
  color:#fff !important;
  background:rgba(15,30,74,.70);
  padding:6px 10px;
  border-radius:999px;
  backdrop-filter:blur(4px);
}

/* Five thumbnails visible at once */
@media(min-width:761px){
  #photo-gallery .gallery-thumbs{
    height:560px !important;
    max-height:560px !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    grid-auto-rows:104px !important;
    gap:10px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    padding:2px 8px 2px 2px !important;
    scroll-behavior:auto;
  }

  #photo-gallery .gallery-thumb{
    width:100% !important;
    height:104px !important;
    min-height:104px !important;
    border:2px solid #fff !important;
    border-radius:13px !important;
    padding:5px !important;
    background:#fff !important;
    box-shadow:
      0 7px 18px rgba(15,30,74,.10),
      0 2px 6px rgba(15,30,74,.05) !important;
    overflow:hidden;
  }

  #photo-gallery .gallery-thumb img{
    width:100% !important;
    height:90px !important;
    object-fit:cover !important;
    border-radius:9px !important;
  }

  #photo-gallery .gallery-thumb.active{
    border-color:#e58a00 !important;
    box-shadow:
      0 0 0 2px rgba(229,138,0,.10),
      0 10px 24px rgba(15,30,74,.14) !important;
  }

  #photo-gallery .gallery-thumb.active::after{
    display:none !important;
  }
}

#photo-gallery .gallery-bottom{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
  padding:18px 4px 0;
}

#photo-gallery .autoscroll-toggle{
  border:1px solid #dfe5ee;
  background:#fff;
  color:#687487;
  min-height:44px;
  padding:7px 14px 7px 8px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-family:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 5px 14px rgba(15,30,74,.06);
  transition:.25s ease;
}

#photo-gallery .autoscroll-toggle:hover{
  color:#0f1e4a;
  border-color:#cfd6e2;
  box-shadow:0 8px 18px rgba(15,30,74,.10);
}

#photo-gallery .autoscroll-toggle.active{
  color:#0f1e4a;
  border-color:#e58a00;
  background:#fffaf2;
}

#photo-gallery .autoscroll-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f5f7fb;
  color:#0f1e4a;
  border:1px solid #e2e7ef;
}

#photo-gallery .autoscroll-toggle.active .autoscroll-icon{
  color:#fff;
  background:#0f1e4a;
  border-color:#0f1e4a;
}

#photo-gallery .gallery-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

#photo-gallery .gallery-dot{
  width:8px;
  height:8px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#cbd3e1;
  cursor:pointer;
  transition:.22s ease;
}

#photo-gallery .gallery-dot:hover{
  background:#9ba8bd;
  transform:scale(1.2);
}

#photo-gallery .gallery-dot.active{
  width:20px;
  border-radius:99px;
  background:#e58a00;
}

#photo-gallery .gallery-navs{
  margin:0 !important;
  display:flex !important;
  justify-content:flex-end !important;
  gap:10px !important;
}

#photo-gallery .gallery-navs button{
  width:44px !important;
  height:44px !important;
  background:#0f1e4a !important;
  border:1px solid rgba(255,255,255,.15) !important;
  box-shadow:0 8px 18px rgba(15,30,74,.18) !important;
}

#photo-gallery .gallery-navs button:hover{
  background:#e58a00 !important;
}

@media(max-width:1050px){
  #photo-gallery .gallery-layout{
    grid-template-columns:minmax(0,1fr) 160px !important;
  }
}

@media(max-width:760px){
  #photo-gallery{
    padding:18px !important;
  }

  #photo-gallery .gallery-shell{
    padding:12px;
  }

  #photo-gallery .gallery-layout{
    grid-template-columns:1fr !important;
    gap:14px !important;
  }

  #photo-gallery .featured,
  #photo-gallery .featured img{
    height:360px !important;
    min-height:360px !important;
  }

  #photo-gallery .gallery-thumbs{
    height:auto !important;
    max-height:none !important;
    display:flex !important;
    gap:9px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    padding:3px 2px 8px !important;
  }

  #photo-gallery .gallery-thumb{
    flex:0 0 112px;
    width:112px !important;
    height:78px !important;
    min-height:78px !important;
    padding:4px !important;
    border-radius:11px !important;
    border:2px solid #fff !important;
    box-shadow:0 5px 14px rgba(15,30,74,.10) !important;
  }

  #photo-gallery .gallery-thumb img{
    width:100% !important;
    height:66px !important;
    border-radius:7px !important;
    object-fit:cover !important;
  }

  #photo-gallery .gallery-thumb.active{
    border-color:#e58a00 !important;
  }

  #photo-gallery .gallery-bottom{
    grid-template-columns:1fr auto;
    grid-template-areas:
      "dots dots"
      "auto nav";
    gap:12px;
  }

  #photo-gallery .gallery-dots{
    grid-area:dots;
  }

  #photo-gallery .autoscroll-toggle{
    grid-area:auto;
    justify-self:start;
  }

  #photo-gallery .gallery-navs{
    grid-area:nav;
  }
}
