
/* =========================================================
   AADITYA HOSPITAL - GALLERY PAGE
   Separate responsive stylesheet
   ========================================================= */

.gallery-hero {
  position: relative;
  isolation: isolate;
  min-height: 410px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #172326 url("../image/signboard.jpg") center 42% / cover no-repeat;
}

.gallery-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(13, 29, 32, .91) 0%,
    rgba(13, 29, 32, .76) 54%,
    rgba(13, 29, 32, .43) 100%
  );
}

.gallery-hero-content {
  position: relative;
  padding-top: 68px;
  padding-bottom: 76px;
}

.gallery-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
}

.gallery-breadcrumb a {
  color: #fff;
  transition: color .2s ease;
}

.gallery-breadcrumb a:hover {
  color: #ff9bbb;
}

.gallery-breadcrumb i {
  color: #f18aaa;
  font-size: 10px;
}

.gallery-hero-label {
  color: #ff9bbb !important;
}

.gallery-hero h1 {
  max-width: 760px;
  margin: 13px 0 12px;
  color: #fff;
  font-family: "Fraunces", "Rozha One", Georgia, serif;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.08;
  font-weight: 700;
}

.gallery-hero-content > p {
  max-width: 640px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 16px;
  line-height: 1.75;
}

.gallery-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.gallery-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.gallery-hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.06);
}

.gallery-hero-actions .btn-outline:hover {
  color: #172326;
  background: #fff;
}

/* PHOTO SECTION */

.gallery-section {
  padding-top: 76px;
  padding-bottom: 82px;
}

.gallery-heading {
  margin-bottom: 28px;
}

.gallery-heading h2 {
  margin-top: 9px;
  font-family: "Fraunces", "Rozha One", Georgia, serif;
}

.gallery-heading p {
  max-width: 620px;
}

/* FILTER BUTTONS */

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 27px;
}

.gallery-filter {
  min-height: 41px;
  padding: 9px 18px;
  border: 1px solid #e5e8e6;
  border-radius: 30px;
  color: #47565a;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.gallery-filter:hover {
  border-color: #c21850;
  color: #c21850;
  transform: translateY(-1px);
}

.gallery-filter.active {
  border-color: #c21850;
  color: #fff;
  background: #c21850;
  box-shadow: 0 6px 16px rgba(194,24,80,.16);
}

/* PHOTO GRID */

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gallery-photo {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e8eae8;
  border-radius: 13px;
  text-align: left;
  background: #fff;
  box-shadow: 0 7px 24px rgba(24,42,47,.055);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-photo:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 32px rgba(24,42,47,.13);
}

.gallery-photo[hidden] {
  display: none !important;
}

.gallery-photo-image {
  position: relative;
  display: block;
  height: 245px;
  overflow: hidden;
  background: #e8eeee;
}

.gallery-photo-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    180deg,
    transparent 60%,
    rgba(13,29,32,.13)
  );
  pointer-events: none;
}

.gallery-photo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.gallery-photo:hover .gallery-photo-image img {
  transform: scale(1.055);
}

.gallery-photo-caption {
  display: block;
  padding: 17px 18px 19px;
}

.gallery-photo-caption strong {
  display: block;
  color: #203238;
  font-size: 15px;
  font-weight: 700;
}

.gallery-photo-caption small {
  display: block;
  margin-top: 6px;
  color: #778488;
  font-size: 12px;
  line-height: 1.5;
}

.gallery-photo-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(20,35,39,.55);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}

.gallery-photo:hover .gallery-photo-zoom,
.gallery-photo:focus-visible .gallery-photo-zoom {
  opacity: 1;
  transform: translateY(0);
}

/* VIDEO SECTION */

.gallery-video-section {
  padding-top: 76px;
  padding-bottom: 82px;
  background: #f6f8f7;
}

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

.gallery-video-section .gallery-heading p {
  margin-inline: auto;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.video-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5e9e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(24,42,47,.055);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #172326;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #172326;
}

.video-card-info {
  padding: 19px 20px 21px;
}

.video-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c21850;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .35px;
  text-transform: uppercase;
}

.video-card-info h3 {
  margin: 9px 0 7px;
  color: #203238;
  font-size: 17px;
  line-height: 1.35;
}

.video-card-info p {
  margin: 0;
  color: #718085;
  font-size: 13px;
  line-height: 1.65;
}

.video-help {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 25px 0 0;
  color: #647277;
  font-size: 12px;
  line-height: 1.65;
}

.video-help i {
  margin-top: 3px;
  color: #267c70;
}

.video-help code {
  padding: 2px 5px;
  border-radius: 4px;
  color: #a91447;
  background: #fcecf1;
}

/* CONTACT CTA */

.gallery-cta {
  padding: 54px 0;
  color: #fff;
  background: linear-gradient(110deg, #172326, #203d3c);
}

.gallery-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.gallery-cta .section-label {
  color: #ff9bbb;
}

.gallery-cta h2 {
  max-width: 690px;
  margin: 9px 0 8px;
  color: #fff;
  font-family: "Fraunces", "Rozha One", Georgia, serif;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
}

.gallery-cta p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

.gallery-cta .btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* PHOTO LIGHTBOX */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 35px;
  background: rgba(8,16,18,.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox figure {
  max-width: min(1000px, 78vw);
  max-height: 88vh;
  margin: 0;
  text-align: center;
}

.gallery-lightbox figure img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: auto;
  object-fit: contain;
  border-radius: 5px;
}

.gallery-lightbox figcaption {
  padding-top: 13px;
  color: #fff;
  font-size: 13px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: #c21850;
  background: #c21850;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
}

body.lightbox-open {
  overflow: hidden;
}

/* TABLET */

@media (max-width: 980px) {
  .gallery-photo-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-hero {
    min-height: 370px;
  }

  .gallery-photo-image {
    height: 230px;
  }
}

/* MOBILE */

@media (max-width: 640px) {
  .gallery-hero {
    min-height: 390px;
    background-position: 58% center;
  }

  .gallery-hero-content {
    padding-top: 48px;
    padding-bottom: 54px;
  }

  .gallery-breadcrumb {
    margin-bottom: 22px;
    font-size: 12px;
  }

  .gallery-hero h1 {
    font-size: clamp(37px, 11vw, 48px);
  }

  .gallery-hero-content > p {
    font-size: 14px;
    line-height: 1.65;
  }

  .gallery-hero-actions {
    gap: 10px;
    margin-top: 23px;
  }

  .gallery-hero-actions .btn {
    padding: 12px 15px;
    font-size: 12px;
  }

  .gallery-section,
  .gallery-video-section {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .gallery-heading {
    margin-bottom: 22px;
  }

  .gallery-heading h2 {
    font-size: 28px;
  }

  .gallery-toolbar {
    gap: 8px;
    margin-bottom: 20px;
  }

  .gallery-filter {
    min-height: 37px;
    padding: 8px 13px;
    font-size: 11px;
  }

  .gallery-photo-grid,
  .video-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .gallery-photo-image {
    height: 235px;
  }

  .gallery-photo-zoom {
    opacity: 1;
    transform: none;
  }

  .video-grid {
    margin-top: 23px;
  }

  .video-card-info {
    padding: 16px 17px 18px;
  }

  .gallery-cta {
    padding: 42px 0;
  }

  .gallery-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .gallery-cta h2 {
    font-size: 27px;
  }

  .gallery-lightbox {
    gap: 8px;
    padding: 18px 10px;
  }

  .gallery-lightbox figure {
    max-width: calc(100vw - 90px);
  }

  .gallery-lightbox figure img {
    max-height: 70vh;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-prev,
  .lightbox-next,
  .lightbox-close {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .gallery-photo,
  .gallery-photo-image img,
  .gallery-filter,
  .gallery-lightbox {
    transition: none;
  }
}
