.wrapper {
  line-height: 1.5;
}

.wrapper h2 {
  margin: 2rem 0 1rem;
}

p {
  padding-bottom: 1rem;
}

.rules-title {
  padding: 7rem 0 2rem;
  text-align: center;
  font-size: 3.5rem;
  line-height: 3.875rem;

  @media (max-width: 767px) {
    font-size: 2.25rem;
    line-height: 1.2;
    padding: 2rem 0 0;
  }

  @media (min-width: 768px) and (max-width: 1023px) {
    font-size: 2.75rem;
    line-height: 1.2;
    padding: 2rem 0 0;
  }
}

#tube::before {
  content: "";
  display: block;
  height: 150px;     
  margin-top: -150px; 
  visibility: hidden;
}


#tube {
  scroll-margin-top: 150px;
}

.tube {
    text-align: center !important;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    scroll-margin-top: 150px;
}

.booking-page .rules-title {
  padding-bottom: 2.25rem;

  @media (min-width: 768px) and (max-width: 1023px) {
    padding-bottom: 2.5rem;
  }

  @media (min-width: 1024px) {
    padding-bottom: 4rem;
  }
}


/* Header */
.header {
  top: 0;
  background-color: black;
  background: url("../images/main-banner.jpg") no-repeat center center;
  background-size: cover;

  @media (max-width: 767px) {
    background: url("../images/main-banner-mobile.jpg") no-repeat center
      center;
    background-size: cover;
  }

  @media (min-width: 768px) and (max-width: 1023px) {
    background: url("../images/main-banner-tablet.jpg") no-repeat center
      center;
    background-size: cover;
  }
}

.iframe-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.instagram-embed {
  max-width: 400px; /* Adjust width as needed */
  margin: auto;
}

.iframe-video.iframe-video-vertical {
  aspect-ratio: 9 / 16;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 12px;
  max-width: 420px;
  margin: 0 auto;
  margin-top: 1rem;
}

.tube.two-shorts {
  flex-wrap: wrap;
  gap: 1.25rem;
}

.tube.two-shorts > figure {
  margin: 0;
  flex: 1 1 340px;
  max-width: 420px;
}

.tube.two-shorts figcaption {
  margin-top: .5rem;
  color: #555;
  text-align: center;
  font-size: .95rem;
}

.tube.stack {
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
}

.tube.stack > figure {
  margin: 0;
  margin-top: 1rem;
  width: 100%;
  max-width: 420px;
}

.tube.stack figcaption {
  margin-top: .5rem;
  color: #555;
  text-align: center;
  font-size: .95rem;
}

.tube.stack figure { 
  text-align: left !important;
}

.tube.stack > figure > h2 {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.tube.stack figcaption {
  text-align: left;      /* або приберіть цей рядок, якщо підпис має лишатися по центру */
}