.banner-container {
  display: none;
  width: 100%;
  text-align: center;
  background-color: black;
}

.banner-image {
  width: 100%;
  text-align: center;
}

.sponsor-container {
  width: 100%;
  display: grid;
  place-items: center; /* Shorthand for aligning both horizontally and vertically */
}

.carousel-container {
  width: 100%;
}

.text-container {
  display: grid;
  place-items: center; /* Shorthand for aligning both horizontally and vertically */
}

.cust-h1 {
  color: #c00;
  text-transform: uppercase;
  font-family: "Open Sans", sans-serif;
  margin: 10px 0;
  font-size: 32px;
  line-height: 35px;
}

.ramrodeotour-schedule-mobile {
  display: none;
}

.rodeo-container {
  display: grid;
  /* Use minmax(0, 1fr) so the middle column can shrink properly and not force the buttons to wrap */
  grid-template-columns: auto minmax(0, 1fr) auto; /* Three columns: date | name | buttons */
  align-items: center; /* Center align items vertically */
}

.rodeo-container span {
  display: inline-block;
  margin: 10px;
}

.rodeo-date {
  color: #c00;
  text-transform: uppercase;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
}

.rodeo-name {
  color: #161616;
  text-transform: uppercase;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: bold;
  justify-self: center;
}

/* Prevent long rodeo names from wrapping and pushing the buttons down */
.rodeo-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quicklinks-container {
  display: none;
  width: 100%;
}

.content {
  padding: 10px 18px;
  overflow: hidden;
  background-color: black;
  align-content: center;
}

.content ul {
  list-style-type: none;
  list-style: none;
  margin: 0;
  padding: 2px;
  background-color: black;
  overflow: hidden;
  text-align: center;
}

.content li {
  display: inline-block;
  text-align: center;
}

.content ul li::before {
  display: none;
}

.content li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-weight: bold;
  font-size: 24px;
  font-family: "Open Sans", sans-serif;
  text-transform: uppercase;
}

.button {
  display: flex;
  padding: 10px 20px;
  margin: 12px;
  border-radius: 15px;
  background-color: #c00;
  font-size: 24px;
  color: white;
  place-content: center space-evenly;
  flex-flow: row nowrap;
  text-transform: uppercase;
  font-family: "Open Sans", sans-serif;
  width: 161px;
}

.button:hover {
  background-color: black;
  color: #c00;
  outline: 2px solid #c00;
}

.standalone-button {
  display: flex;
  padding: 14px 16px;
  margin: 12px;
  border-radius: 15px;
  background-color: #c00;
  font-size: 24px;
  color: white;
  place-content: center space-evenly;
  flex-flow: row nowrap;
  text-transform: uppercase;
  font-family: "Open Sans", sans-serif;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}

.standalone-button:hover {
  background-color: black;
  color: #c00;
  outline: 2px solid #c00;
}

.rodeo-button {
  display: inline-block;
  padding: 4px 10px;
  margin: 12px;
  border-radius: 15px;
  background-color: #c00;
  font-size: 18px;
  color: white;
  place-content: center space-evenly;
  flex-flow: row nowrap;
  text-transform: uppercase;
  font-family: "Open Sans", sans-serif;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  justify-self: end;
}

.rodeo-button:hover {
  background-color: black;
  color: #c00;
  outline: 2px solid #c00;
}

/* Button group used on desktop so Info + Tickets stay on one line */
.rodeo-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: end; /* place group in the right-most grid cell */
}

/* Ensure the button group doesn't shrink or wrap inside the grid cell */
.rodeo-buttons {
  white-space: nowrap;
  flex-shrink: 0;
}

.rodeo-buttons .rodeo-button {
  margin: 6px 4px; /* tighter spacing within the group */
}

.close-button {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 10px;
  right: 10px;
  background-image: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpPOC92yxCJ2bNLIsVKwhJPdubzh7zams-NXD4AVNaurDwemw_ULVjE779py5jE_b0TBBVtNG9ynDoxlyzThiyHrM-3-Ui-pMtXPGjbsofljmRv9nv7PKeJOsBW60ezURV0kD8EUpzrzboZjCK0_O44A2wPGaXZGpsxg7Jyg94A4qXWd-IItxfjUtvPemg/s1600/close-button-black.png');
  background-repeat: no-repeat;
  background-size: contain;
  transition: background-image 0.5s ease;
  z-index: 9999; /* Ensure the button is on top of other elements */
}

.close-button:hover {
  background-image: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzpbk3zc7yxLgEDd1ERxp0pz6E6hqCixuPaGCtmNHEXrxDEpfFconydQ_yKsbGP2kFcsJfHJqnT9N4hD3_kdBpf0b6_5Okdlk1oGXC8V4K_Tsv-iMMt2a7eP6KMlBTTJBCDto8N4riIZxIWC4g7OGEq7bjxDk8EdAoRiEllq6pYIsXDPHHtHvp8dS1fwGT/s1600/close-button-pink.png');
}

.post-header {
  display: none;
}

/* Popup container */
.popup {
  display: none;
  position: fixed;
  width: 60%;
  height: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 40px;
  border: 2px solid #ccc;
  border-radius: 5px;
  z-index: 9998;
  animation: fadeIn 1s ease-in-out forwards;
}

.hpl-advert {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.cust-separator {
  height: 2px;
  border-width: 0;
  background-color: #c00;
}

@media (max-width: 768px) { /* Adjust breakpoint as needed */
    .ramrodeotour-schedule-mobile {
      display: block;
      text-align: center;
    }

    .ramrodeotour-schedule {
      display: none;
    }

    .rodeo-button-mobile {
      display: inline-block;
      padding: 4px 10px;
      margin: 12px;
      border-radius: 15px;
      background-color: #c00;
      font-size: 18px;
      color: white;
      place-content: center space-evenly;
      flex-flow: row nowrap;
      text-transform: uppercase;
      font-family: "Open Sans", sans-serif;
      text-align: center;
      text-decoration: none;
      font-weight: bold;
      justify-self: end;
    }

    .rodeo-button-mobile:hover {
      background-color: black;
      color: #c00;
      outline: 2px solid #c00;
    }

    .rodeo-container-mobile {
      align-items: center; /* Center align items vertically */
      border: 1px solid black;
      border-radius: 15px;
      margin: 5px;
    }

    .rodeo-info-mobile {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .rodeo-date-mobile {
      margin-bottom: 5px;
      color: #c00;
      text-transform: uppercase;
      font-family: "Open Sans", sans-serif;
      font-size: 18px;
    }

    .rodeo-name-mobile {
      color: #161616;
      text-transform: uppercase;
      font-family: "Open Sans", sans-serif;
      font-size: 18px;
      font-weight: bold;
      justify-self: center;
    }

    .post {
      margin: 0;
    }

    .post-entry {
      padding-right: 30px;
    }

    .popup {
      width: auto;
      height: auto;
      top: 0;
      left: 0;
      transform: none;
      border-radius: 0;
      animation: fadeIn 1s ease-in-out forwards;
    }

    #ticketwebPopup {
      width: 90%;
      height: 95%;
      padding: 20px;
    }
  }

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 75%);
  z-index: 9995;
  animation: fadeIn 1s ease-in-out forwards;
}

.images-container {
  display: none;
}

.images-container a {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}