@import url('includes.css');
@import url('carousel.css');


.layout-content-area {
  margin-top: 2em;
}

.layout-banner img {
  filter: unset;
}

#act-carousel {
  --carousel-slot-margin: 1em;
  --carousel-slot-width: 400px;
  --carousel-cell-width: 400px;
  --carousel-cell-height: auto;
  --carousel-cell-margin: 1em;
}

.accordion {
  display: flex;
  background-color: white;
  cursor: pointer;
  padding: 0.75em;
  width: calc(100% - 1.5em);
  align-items: center;
  border: none;
  transition: 0.4s;
  margin-top: 1em;
  margin-bottom: 1em;
}

.accordion:hover {
  background-color: #ccc;
}

.accordion-panel {
  padding: 0;
  display: none;
  overflow: hidden;
}

.accordion-arrow {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  margin-left: auto;
  /* rotate: 90deg; */
  transform: rotate(90deg);
  border-style: outset;
  border-color: black;
  border-width: 1px;
  padding: 8px;
}

.arrow {fill:none;stroke:#3e3a39;stroke-miterlimit:10;stroke-width:3px;}

.active .arrow {
  stroke: #ffffff;
}
.active .accordion-arrow {
  border-style: none;
  background-color: var(--palette-color-1);
  /* rotate: -90deg; */
  transform: rotate(-90deg);

}

.layout-a-faq {
  margin-top: 5em;
}

h2.layout-a-faq-item {
  font-size: 21px;
  font-weight: bold;
}

.layout-a-faq-content .columns {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2vw;
}

.layout-a-faq-content .columns>div {
  flex-basis: 100%;
}

.layout-a-faq-content .columns img {
  width: 100%;
}

@media (width < 48rem) {
  .layout-a-faq-content .columns {
    flex-direction: column;
    gap: unset;
  }
}

.news-label {
  word-spacing: normal !important;
  white-space: nowrap;  /* Prevents breaking apart */
}

.news-link {
  display: inline !important;  /* Ensures link stays in line */
  word-break: break-all;  /* Allows URL to break if it’s too long */
  overflow-wrap: anywhere; /* Ensures long URLs break properly */
}

.text-container p {
  line-height: 1.8; /* Increases spacing between lines */
  margin-bottom: 10px; /* Adds space between paragraphs */
}

/* Ensure links also get proper spacing */
.text-container a {
  display: block; /* Makes links appear on separate lines */
  margin-bottom: 10px;
}

/* Ensure parent containers allow scrolling */
body, main, .layout-content-area {
  min-width: 0; /* No forced min-width, let content dictate */
  width: auto;
  overflow-x: auto; /* Scroll if needed */
}

/* Photo container */
.photo-container {
  display: inline-block; /* Inline layout */
  white-space: nowrap; /* Side by side, no wrapping */
  padding: 0 10px; /* Optional padding for scroll */
}

/* Images */
.photo-container img {
  display: inline-block; /* Side by side */
  width: 600px !important; /* Natural width, no adjustment */
  height: auto; /* Retain original proportion */
  margin-right: 15px; /* Fixed gap */
  vertical-align: top; /* Align tops */
}

/* Remove margin from last image */
.photo-container img:last-child {
  margin-right: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  body, main, .layout-content-area {
    min-width: 0; /* Reset for mobile */
    overflow-x: hidden;
  }

  .photo-container {
    display: block; /* Stack vertically */
    white-space: normal; /* Allow wrapping */
  }

  .photo-container img {
    display: block; /* Full width */
    width: auto !important; /* Natural width */
    height: auto; /* Retain proportion */
    max-width: 100%; /* Fit screen if narrower */
    margin: 10px auto; /* Center with gap */
  }
}

.image-container {
  display: grid;
  grid-template-columns: repeat(var(--image-container-columns), 1fr);
  gap: var(--image-container-gap);
  --aspect-ratio: 4 / 3;
}

.image-container.body {
  gap: 1vw;
}

.image-container a {
  color: unset;
}

.image-container img {
  width: 100%;
  aspect-ratio: var(--aspect-ratio);
  object-fit: contain;
}

.image-container .image {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-container.events .image {
  align-items: start;
}

.image-container.events .date {
  font-size: clamp(11px, 4vw, 17px);
}

.image-container.events .title {
  font-size: 16pt;
  font-weight: bold;
}

.image-container:has(> img:only-child) img {
  object-fit: cover;
  max-width: 100%;
}

@media (max-width: 768px) {
  .image-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media screen and (max-width: 1024px) {
  .image-container.events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .image-container.events {
    grid-template-columns: 1fr;
  }
}


.layout-content-area .video {
  /* position: relative; */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.layout-content-area .video .background {
  position: absolute;
  width: 100vw;
  height: min(80vh, calc(90vw * 16 / 9));
  background: var(--palette-color-1);
  z-index: -1;
}

.layout-content-area video {
  height: min(80vh, calc(90vw * 16 / 9));
  max-width: 90vw;
}

.image-container.schedule .image {
  align-items: start;
  overflow-x: scroll;
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
 /* Hide scrollbar for Chrome, Safari and Opera */
.image-container.schedule .image::-webkit-scrollbar {
  display: none;
}

.image-container.schedule .image img {
  min-width: 1000px;
}

h2 {
  margin-block-start: unset;
  margin-block-end: unset;
}

h2, h3 {
  text-align: center;
}

.h4 {
  /* width: 100%; */
  text-align: center !important;
}

.routes {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.routes .titles {
  display: flex;
  flex-direction: row;
  gap: 2em;

  overflow-x: scroll;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
/* Hide scrollbar for Chrome, Safari and Opera */
.routes .titles::-webkit-scrollbar {
  display: none;
}

.routes .caption img {
  object-fit: contain;
}

.goalngo-carousel {
  position: relative;
  overflow: hidden;
}

.goalngo-carousel .contents {
  display: flex;
  flex-direction: row;

  transition: transform 100ms;
}

.goalngo-carousel .cell-container {
  display: flex;
  flex-direction: row;
}

.goalngo-carousel .cell-container .cell {
  padding-left: calc(var(--carousel-gap) / 2);
  padding-right: calc(var(--carousel-gap) / 2);
}

.goalngo-carousel .cell-container .cell>img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.goalngo-carousel .cell-container .cell .caption {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
  justify-content: center;
}

.goalngo-carousel .carousel--btn {
  background: transparent;
  border-style: none;
  cursor: pointer;
  padding: 10px;
  width: 50px;
}

.goalngo-carousel .carousel--btn img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0px 0px 2px black);
}

.goalngo-carousel .carousel--prev {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.goalngo-carousel .carousel--next {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}

.route-title-carousel .cell {
  text-align: center;
}

.route-title-carousel .cell:hover {
  cursor: pointer;
  text-decoration: underline;
}

.route-title-carousel .cell[selected] {
  font-weight: bold;
}

.interactives {
  display: flex;
  flex-direction: column;
  gap: min(calc(1250px * 0.04), 4vw);
}

.interactives .interactive {
  display: flex;
  flex-direction: row;
  gap: min(calc(1250px * 0.02), 2vw);
}

.interactives .interactive[reverse] {
  flex-direction: row-reverse;
}

.interactives .interactive .info {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.interactives .interactive .info .title {
  font-size: 40px;
  font-weight: bold;
}

.interactives .interactive .info .buttons {
  display: grid;
  gap: min(calc(1250px * 0.01), 1vw);
  grid-template-columns: repeat(4, 1fr);
  container-type: inline-size;
}

a.button {
  display: inline-block;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--theme-txt-color);
  border-radius: 6px;
  outline: none;
  transition: 0.3s;
  border-width: 1px;
  border-color: var(--theme-txt-color);
  border-style: solid;
  font-size: 3cqw;
}

a.button:hover, a.button:focus {
  background-color: white;
}

.video {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: 100;
  background-color: var(--palette-black-tr);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.video video {
  background-color: black;
  width: 100%;
  height: auto;
  max-width: 80vw;
  max-height: 80vh;
}

.video .close {
  color: white;
  position: fixed;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  border-style: none;
  background-color: transparent;
  cursor: pointer;
  filter: drop-shadow(0px 0px 2px black) drop-shadow(0px 0px 2px black);
}

@media (width < 64rem) {
  .interactives .interactive {
    flex-direction: column;
  }

  .interactives .interactive[reverse] {
    flex-direction: column;
  }
}
