@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap");
body {
  font-family: "Red Hat Display", sans-serif;
  background: #f7f8fa;
  margin: 0;
  padding: 0;
}
.red-hat-display {
  font-family: "Red Hat Display", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
.gallery-header {
  color: #313669;
  background-color: #f7faff;
  padding: 30px;
}
.container-gallery {
  max-width: 1100px;
  width: 80%;
  margin: 10px auto;
  padding: 20px;
}
.breadcrumb {
  color: #7c8088;
  font-size: 13px;
  margin-bottom: 10px;
  padding-left: 40px;
}
.tabs-gallery {
  display: flex;
  width: 280px;
  margin: 24px auto 36px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  background: #fff;
  border: 1px solid #96969580;
  padding: 2px;
}
.tab-btn-gallery {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  margin: 4px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
  color: #555;
}
.tab-btn-gallery.active {
  background: linear-gradient(90deg, #ee4367 0%, #fd944b 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(238, 67, 103, 0.09);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.card-gallery {
  background: #e8eefb;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 300px;
  box-shadow: 0 2px 12px rgba(60, 60, 100, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.13s;
  cursor: pointer;
}
.card-gallery:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 10px 28px rgba(218, 138, 70, 0.18);
}
.card-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.center-dot-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eb315c 60%, #fd944b 100%);
  box-shadow: 0 3px 11px #fd944b36;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s;
  z-index: 3;
}
.center-dot-overlay img {
  color: #fff;
  width: 28px;
  height: 22px;
  padding-left: 2px;
}
.center-dot-overlay-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff60;
  box-shadow: 0 3px 11px #fd944b36;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s;
  z-index: 3;
}
.center-dot-overlay-video img {
  color: #fff;
  width: 30px;
  height: 28px;
  padding-left: 2px;
}
.center-dot-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 95%;
  border-radius: 24px;
  background: #F41E1E20; /* light translucent white */
  border:1px solid #f41e1e40; /* soft white border */
  backdrop-filter: blur(6px); /* glass blur */
  -webkit-backdrop-filter: blur(6px); /* Safari support */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* subtle shadow for depth */
  opacity: 0; /* keep hidden by default */
  pointer-events: none;
  transition: opacity 0.19s;
  z-index: 2;
}
.center-dot-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 95%;
  border-radius: 24px;
  background: #F41E1E20; /* light translucent white */
  border:1px solid #f41e1e40; /* soft white border */
  backdrop-filter: blur(6px); /* glass blur */
  -webkit-backdrop-filter: blur(6px); /* Safari support */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* subtle shadow for depth */
  opacity: 0; /* keep hidden by default */
  pointer-events: none;
  transition: opacity 0.19s;
  z-index: 2;
}

.card-gallery:hover .center-dot-overlay-video {
  opacity: 1;
  pointer-events: auto;
}
.card-gallery:hover .center-dot-background-video {
  opacity: 1;
  pointer-events: auto;
}


.center-dot-overlay {
  z-index: 3;
}

/* Show dot overlay on hover for all cards */
.card-gallery:hover .center-dot-overlay {
  opacity: 1;
  pointer-events: auto;
}
.card-gallery:hover .center-dot-background {
  opacity: 1;
  pointer-events: auto;
}

.card-footer-gallery {
  pointer-events: none;
  transition: opacity 0.18s;
  padding: 16px 18px 14px 18px;
  margin: 10px;
  background: linear-gradient(
    0deg,
    rgba(34, 32, 50, 0.85) 72%,
    rgba(36, 36, 52, 0.45) 100%
  );
  color: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 16px;
}
.card-gallery:hover {
  opacity: 1;
  pointer-events: auto;
}
.card-title-gallery {
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.card-desc-gallery {
  margin-top: 6px;
  font-size: 13px;
  color: #e0e0ff;
}
#thumbnail{
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
}
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .container-gallery {
    padding: 8px;
    width: 100%;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 62, 80, 0.15);
  /* Soft blur for backdrop effect */
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  transition: opacity 0.19s;
}

.modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 38px rgba(44, 62, 80, 0.14);
  max-width: 620px;
  width: 95vw;
  margin: 0 auto;
  overflow: hidden;
  animation: popIn 0.23s cubic-bezier(0.15, 0.67, 0.59, 1.12);
  box-sizing: border-box;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

@keyframes popIn {
  from {
    transform: scale(0.96);
  }
  to {
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  right: 24px;
  top: 20px;
  font-size: 32px;
  color: #ee4367;
  background: transparent;
  border: none;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #fd944b;
}

.modal-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 18px;
  width: 100%;
}
.slider-prev {
  position: absolute;
  left: 22px;                  
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.slider-next {
  position: absolute;
  right: 22px;                
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.slider-prev,
.slider-next {
  background: #00000030;
  border: none;
  color: #fff;
  font-size: 20px;
  padding: 5px 15px;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(55, 47, 75, 0.1);
  transition: background 0.18s;
  outline: none;
}

#modalImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(44, 62, 80, 0.1);
  background: #f7f8fa;
  display: block;
}

.modal-caption {
  padding: 16px 0 0 0;
  text-align: center;
  width: 100%;
}

#modalTitle, #videoModalTitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #313669;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  font-family: "Red Hat Display", "Segoe UI", Arial, sans-serif;
}

#modalDesc {
  color: #6e7998;
  font-size: 15px;
  line-height: 1.5;
  font-family: "Red Hat Display", "Segoe UI", Arial, sans-serif;
  margin-bottom: 6px;
  margin-top: 2px;
}
.modal-video-wrapper{
    width: 600px;
    max-height: 500px;
}
.modal-video-wrapper video{
    width: 100%;
    max-height: 500px;
}
@media (max-width: 768px) {
    .modal-video-wrapper {
        width: 100%;
        max-height: 60vh;
    }
    .modal-video-wrapper video {
        width: 100%;
        height: auto;
        max-height: 60vg;
    }
}

/* Responsive */
@media (max-width: 700px) {
  .modal-content {
    padding: 22px 10px 12px 10px;
  }
  #modalImage {
    width: 94vw;
    height: 166px;
  }
}
