/* Pages styles */
.inner {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
  background: #f4f4f1;
  color: #111;
}

.gallery-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.gallery-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
  justify-content: center;
  gap: 0;
  animation: none;
}

.gallery-group {
  display: flex;
  flex-shrink: 0;
  gap: 28px;
  padding-right: 28px;
}

.gallery-group[aria-hidden="true"] {
  display: none;
}

.gallery-marquee:hover .gallery-track {
  animation-play-state: paused;
}

@keyframes gallery-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.gallery-card {
  position: relative;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
  margin: 0;
  flex: 0 0 min(560px, 46vw);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-card img {
  transform: scale(1.01);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s;
  background-color: #000;
}

/* Focus variants for gallery images */
.gallery-card.focus-right img {
  /* show more of the right side (person) */
  object-position: 75% center;
}

.gallery-card.focus-top img {
  object-position: center top;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

 

.cert-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

/* Horizontal certificate layout: text to the right, aligned to top */
.cert-layout.horizontal {
  align-items: start;
}

/* If the certificate image needs to be displayed horizontally (rotated),
   apply the horizontal-image class on .cert-image or use the layout class above. */
.cert-layout.horizontal .cert-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.cert-layout.horizontal .cert-image img {
  transform: none;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.cert-image {
  background: #fff;
  padding: 0;
  box-shadow: 0 25px 70px #0002;
}

.cert-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.cert-copy h2,
.tariff-title {
  font: 800 clamp(45px, 5vw, 70px) /.9 'Source Sans Pro', sans-serif;
  text-transform: uppercase;
  margin: 12px 0 22px;
}

.cert-copy h2 {
  text-align: center;
}

.cert-copy h2 em,
.tariff-title em {
  color: #c34b47;
  font-style: normal;
}

.cert-copy p {
  color: #666;
  line-height: 1.8;
}

 

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}

.tariff {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 10px 8px;
  min-height: 168px;
  height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  text-align: center;
  font-weight: 700;
  cursor: default;
}

.tariff:hover {
  transform: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.tariff p,
.combined-tariff p {
  width: 100%;
  max-width: 210px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-wrap: balance;
}

.tariff p {
  color: #111;
  line-height: 1.35;
}

.parenthetical-text {
  display: block;
  margin-top: 2px;
  white-space: nowrap;
}

.tariff p.with-parenthetical {
  display: block;
}

.tariff .price,
.combined-tariff .price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  min-width: 70px;
  background: #c34b47;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
  font-weight: 900;
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1;
  letter-spacing: 0.5px;
  text-align: center;
}

.small-price {
  font-size: 14px;
  padding: 7px 10px;
  letter-spacing: 0.02em;
}

.small-note {
  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;
  font-style: italic;
  color: #444;
  max-width: 150px;
}

.tariff .asterisk,
.tariff p .asterisk,
.combined-tariff .asterisk {
  color: #c34b47;
  font-weight: 700;
  font-size: 1.3em;
  line-height: 1;
}

.combined-tariff {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  align-items: center;
  text-align: center;
  min-height: 168px;
  height: 168px;
}

.combined-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.combined-tariff p {
  color: #111;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0;
}

.combined-addon {
  margin-top: 3px !important;
  font-size: 13px !important;
  font-style: italic;
}

.tariff-note {
  margin: 30px auto 0;
  padding: 18px 22px;
  max-width: 900px;
  border-left: 3px solid #c34b47;
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.6;
  font-weight: 600;
}

@media (max-width: 900px) {
  .cert-layout.horizontal {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cert-layout.horizontal .cert-copy {
    width: 100%;
    order: 1;
  }

  .cert-layout.horizontal .cert-image {
    order: 2;
  }

  .tariff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tariff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tariff {
    min-height: 140px;
    padding: 14px 8px;
    gap: 6px;
  }

  .tariff p {
    font-size: 12px;
  }

  .tariff .price {
    min-width: 62px;
    padding: 6px 9px;
    font-size: 17px;
  }
  /* ensure people remain visible on narrow screens */
  .gallery-card.focus-right img,
  .gallery-card.focus-top img {
    object-position: center top;
  }

  /* Match each card to its photo ratio so mobile images fill the frame. */
  .gallery-card img {
    object-fit: cover;
    transform: none;
  }

  /* one photo at a time on mobile, swipeable */
  .gallery-marquee {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
    -webkit-mask-image: none;
    padding: 0 6vw;
  }

  .gallery-track {
    justify-content: flex-start;
  }

  .gallery-group {
    gap: 0;
    padding-right: 0;
  }

  .gallery-card {
    flex: 0 0 88vw;
    aspect-ratio: 4 / 5;
    scroll-snap-align: center;
  }

  .gallery-card:nth-child(2) {
    aspect-ratio: 4 / 3;
  }

  .gallery-card + .gallery-card {
    margin-left: 16px;
  }
}
