/* =========================================
   Dr. Priti's Dental Care Clinic — Styles
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --navy:  #0d3b7a;
  --blue:  #1a5bbf;
  --sky:   #4a9fd4;
  --light: #d6ecf7;
  --white: #ffffff;
  --cream: #f5faff;
  --text:  #1a2a3a;
  --muted: #6b88a5;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* =====================
   NAVIGATION
   ===================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 59, 122, 0.97);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); text-decoration: none;
}
.nav-logo .tooth-icon {
  width: 38px; height: 38px;
  background: var(--sky);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  line-height: 1.2;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--light); }
.nav-links a.active { color: var(--light); }
.nav-cta {
  background: var(--sky);
  color: var(--white) !important;
  padding: 8px 20px; border-radius: 24px;
  font-weight: 600 !important;
  transition: background 0.3s !important;
}
.nav-cta:hover { background: #5eb8f0 !important; }

/* =====================
   HERO
   ===================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #1550a8 50%, #1a6bbf 100%);
  display: flex; align-items: center;
  padding: 100px 5% 60px;
  position: relative; overflow: hidden;
  width: 100%;
}
.hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(74,159,212,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute; bottom: -80px; left: 20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,159,212,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  flex: 1; max-width: 620px;
  position: relative; z-index: 2;
  animation: fadeUp 0.8s ease both;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(74,159,212,0.25);
  border: 1px solid rgba(74,159,212,0.4);
  color: var(--light);
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 8px;
}
.hero h1 span { color: var(--sky); }
.hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.7);
  margin-bottom: 16px; font-weight: 300; letter-spacing: 0.5px;
}
.hero-tagline {
  font-size: 1.05rem; color: rgba(255,255,255,0.82);
  margin-bottom: 36px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px;
  margin-top: 48px; padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.15);
  animation: fadeUp 0.8s 0.2s ease both;
}
.stat h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--sky); font-weight: 700;
}
.stat p { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.hero-visual {
  flex: 0 0 auto; width: 360px;
  position: relative; z-index: 2;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.hero-card .big-tooth { font-size: 80px; margin-bottom: 16px; display: block; }
.hero-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--white); margin-bottom: 6px;
}
.hero-card p { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.timing-chip {
  background: rgba(74,159,212,0.3);
  border: 1px solid rgba(74,159,212,0.5);
  color: var(--light);
  padding: 8px 14px; border-radius: 10px;
  font-size: 0.8rem; margin: 4px;
  display: inline-block;
}

/* =====================
   SHARED SECTION STYLES
   ===================== */
section { padding: 90px 5%; }
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--sky);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--navy); line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem; color: var(--muted); line-height: 1.7;
  max-width: 520px;
}

/* =====================
   BUTTONS
   ===================== */
.btn-primary {
  background: var(--sky);
  color: var(--white);
  padding: 14px 32px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 20px rgba(74,159,212,0.4);
}
.btn-primary:hover {
  background: #5eb8f0;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(74,159,212,0.5);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 14px 32px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}
.btn-white {
  background: var(--white);
  color: var(--blue);
  padding: 16px 40px; border-radius: 50px;
  font-size: 1rem; font-weight: 700;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.2);
}

/* =====================
   INFO STRIP
   ===================== */
.info-strip { background: var(--white); padding: 0; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); }
.info-card {
  padding: 40px 32px;
  display: flex; align-items: flex-start; gap: 20px;
  border-right: 1px solid rgba(26,91,191,0.08);
  transition: background 0.3s;
}
.info-card:last-child { border-right: none; }
.info-card:hover { background: var(--cream); }
.info-card .ic-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.info-card h4 {
  font-weight: 600; font-size: 0.9rem;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 8px;
}
.info-card p { font-size: 0.95rem; color: var(--text); line-height: 1.6; }
.info-card a { color: var(--blue); text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

/* =====================
   SERVICES
   ===================== */
.services { background: var(--cream); }
.services-header { margin-bottom: 56px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: 20px; padding: 32px 28px;
  transition: all 0.3s;
  border: 1px solid rgba(26,91,191,0.08);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13,59,122,0.12);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--light), #b8d9f0);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
}
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--navy); margin-bottom: 10px;
}
.service-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* =====================
   WHY US
   ===================== */
.why-us {
  background: linear-gradient(135deg, var(--navy) 0%, #1550a8 100%);
  position: relative; overflow: hidden;
}
.why-us::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 40%; background: rgba(255,255,255,0.03);
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.why-content .section-title { color: var(--white); }
.why-content .section-sub { color: rgba(255,255,255,0.7); }
.why-content .section-label { color: var(--sky); }
.why-features {
  margin-top: 36px;
  display: flex; flex-direction: column; gap: 20px;
}
.why-feature { display: flex; gap: 16px; align-items: flex-start; }
.why-feature .icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(74,159,212,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.why-feature h4 { color: var(--white); font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.why-feature p { color: rgba(255,255,255,0.65); font-size: 0.85rem; line-height: 1.6; }
.why-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px; padding: 28px 22px;
  text-align: center; transition: all 0.3s;
}
.why-box:hover { background: rgba(255,255,255,0.13); transform: translateY(-4px); }
.why-box:nth-child(2) { margin-top: 24px; }
.why-box:nth-child(4) { margin-top: -24px; }
.why-box .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; color: var(--sky); font-weight: 700;
}
.why-box p { color: rgba(255,255,255,0.7); font-size: 0.82rem; margin-top: 4px; }

/* =====================
   DOCTOR (ABOUT)
   ===================== */
.doctor { background: var(--cream); }
.doctor-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 60px; align-items: center;
}
.doctor-photo-wrap { position: relative; }
.doctor-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center top;
  border-radius: 24px;
  display: block;
  background: linear-gradient(135deg, var(--light) 0%, #a8d4f0 100%);
  box-shadow: 0 20px 60px rgba(13,59,122,0.2);
}
.doc-badge {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--navy); color: var(--white);
  padding: 14px 22px; border-radius: 16px;
  font-size: 0.8rem; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  text-align: center;
}
.doc-badge strong { display: block; font-size: 1.1rem; color: var(--sky); }
.credentials { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.cred-chip {
  background: var(--light); color: var(--blue);
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600;
  border: 1px solid rgba(26,91,191,0.15);
}
.doctor-info p { font-size: 0.95rem; color: #4a6280; line-height: 1.8; margin-bottom: 16px; }
.doc-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.doc-hi { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text); }
.doc-hi span { color: var(--sky); font-size: 1.2rem; }

/* =====================
   TESTIMONIALS
   ===================== */
.testimonials { background: var(--white); }
.test-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 48px;
}
.test-card {
  background: var(--cream);
  border-radius: 20px; padding: 28px;
  border: 1px solid rgba(26,91,191,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,59,122,0.1);
}
.test-stars { color: #f5a623; font-size: 1rem; margin-bottom: 14px; }
.test-card p { font-size: 0.9rem; color: #4a6280; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--light), var(--sky));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--navy); font-weight: 700;
}
.test-author h5 { font-size: 0.9rem; color: var(--navy); font-weight: 600; }
.test-author span { font-size: 0.78rem; color: var(--muted); }

/* =====================
   GALLERY
   ===================== */
.gallery { background: var(--cream); }
.gallery .section-sub { margin-bottom: 48px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.gallery-item.large { grid-row: span 2; }
.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--light);
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.4s ease;
  min-height: 180px;
}
.gallery-item.large img { min-height: 376px; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,59,122,0.75) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end;
  padding: 20px;
}
.gallery-overlay span {
  color: var(--white);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.5px;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* =====================
   CTA SECTION
   ===================== */
.cta-section {
  background: linear-gradient(135deg, var(--sky) 0%, var(--blue) 100%);
  text-align: center; padding: 80px 5%;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '🦷';
  position: absolute; font-size: 200px; opacity: 0.06;
  top: -30px; left: -30px; transform: rotate(-15deg);
}
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white); margin-bottom: 16px;
}
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 36px; }

/* =====================
   CONTACT
   ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 60px; margin-bottom: 48px;
}
.footer-brand .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--white);
  margin-bottom: 12px; display: block;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-brand a { color: var(--sky); text-decoration: none; }
.footer-col h5 {
  color: var(--white); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.5px; margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li { font-size: 0.88rem; }
.footer-col ul a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--light); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--sky); text-decoration: none; }

/* =====================
   WHATSAPP FLOAT
   ===================== */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  background: #25D366; color: var(--white);
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  transition: transform 0.3s;
  animation: pulse 2s infinite;
}
.wa-float:hover { transform: scale(1.12); }

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
  50%       { box-shadow: 0 6px 32px rgba(37,211,102,0.75); }
}
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =====================
   RESPONSIVE — TABLET (max 900px)
   ===================== */
@media (max-width: 900px) {

  /* NAV */
  .nav-links { display: none; }

  /* HERO */
  .hero {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    padding: 100px 5% 60px;
    min-height: 100vh;
    width: 100%;
  }
  .hero::before, .hero::after { display: none; }
  .hero-content { max-width: 100%; width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 24px; }
  .hero-visual { display: none; }

  /* INFO STRIP */
  .info-cards { grid-template-columns: 1fr; }
  .info-card {
    border-right: none;
    border-bottom: 1px solid rgba(26,91,191,0.08);
    padding: 28px 24px;
  }
  .info-card:last-child { border-bottom: none; }

  /* SERVICES */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* WHY US */
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-visual { grid-template-columns: repeat(2, 1fr); }
  .why-box:nth-child(2), .why-box:nth-child(4) { margin: 0; }

  /* DOCTOR */
  .doctor-grid { grid-template-columns: 1fr; gap: 40px; }
  .doctor-photo-wrap { max-width: 360px; margin: 0 auto; }
  .doctor-img { max-height: 400px; width: 100%; }
  .doc-badge { bottom: -12px; right: -8px; }

  /* CONTACT */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* GALLERY */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.large { grid-column: span 2; grid-row: span 1; }
  .gallery-item.large img { min-height: 220px; }
  .gallery-item img { min-height: 160px; }

  /* FOOTER */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* =====================
   RESPONSIVE — MOBILE (max 560px)
   ===================== */
@media (max-width: 560px) {

  /* GENERAL */
  section { padding: 60px 5%; }

  /* HERO */
  .hero { padding: 90px 5% 50px; text-align: center; }
  .hero-content { text-align: center; }
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .stat { text-align: center; min-width: 90px; }

  /* INFO STRIP */
  .info-card { padding: 22px 20px; gap: 14px; }
  .info-card .ic-icon { width: 42px; height: 42px; font-size: 18px; }
  .info-card p { font-size: 0.88rem; }

  /* SERVICES */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px 20px; }

  /* WHY US */
  .why-box { padding: 20px 14px; }
  .why-box .num { font-size: 1.8rem; }

  /* DOCTOR */
  .doctor-photo-wrap { max-width: 100%; }
  .doctor-img { width: 100%; max-height: 320px; }
  .doc-badge {
    position: static;
    display: inline-block;
    margin-top: 20px;
    border-radius: 12px;
  }
  .doc-highlights { grid-template-columns: 1fr; }

  /* CONTACT */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .contact-grid > div:last-child {
    padding: 24px 16px !important;
    border-radius: 16px !important;
  }
  .name-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* TESTIMONIALS */
  .test-grid { grid-template-columns: 1fr; }

  /* GALLERY */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; }
  .gallery-item img,
  .gallery-item.large img { min-height: 200px; }

  /* CTA */
  .cta-section { padding: 60px 5%; }
  .btn-white { width: 100%; justify-content: center; }

  /* FOOTER */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: 100%; }
  footer { padding: 48px 5% 24px; }

  /* WHATSAPP */
  .wa-float { width: 50px; height: 50px; font-size: 22px; bottom: 20px; right: 20px; }
}

.gallery-item {
  aspect-ratio: 4/3;
}
.gallery-item.large {
  aspect-ratio: unset;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item.large img {
  height: 100%;
  min-height: 376px;
}