main {
  grid-template-columns: repeat(12, 1fr);
}

#page-header {
  margin-bottom: 0;
  /* background-color: var(--season-color); */
  margin-top: 0;
  padding-top: var(--gutter-width);
}

#page-header h1 {
  /* color: var(--secondary-color); */
  transition: letter-spacing 0.3s ease;
}

#page-header h1:hover {
  letter-spacing: 10px;
}

.slider {
  grid-column: 1 / span 12;
}
.swiper {
  overflow: initial;
}
.swiper-slide {
  text-align: left;
  height: auto;
  justify-content: start;
}

.swiper-slide::-webkit-scrollbar {
  width: 0;
  display: none;
}

.swiper-wrapper {
  align-items: start;
}

.swiper-slide-header {
  padding: var(--margin-width) var(--margin-width) calc(var(--margin-width) / 2)
    var(--margin-width);
  position: sticky;
  top: var(--margin-width);
  z-index: 2;
  background-color: var(--light-color);
  display: flex;
  align-items: center;
  column-gap: var(--gutter-width);
  box-shadow: 0 20px 20px var(--light-color);
}

.swiper-slide-header h1 {
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 2.4rem;
}

.swiper-button-prev,
.swiper-button-next {
  display: none;
}

.opening > * {
  display: inline-block;
  font-size: 0.85rem;
}

.opening-color {
  height: 0.7rem;
  width: 0.7rem;
  border-radius: 100%;
  margin-right: 0.5rem;
}

.expositions-container {
  position: sticky;
  top: 180px;
}

.flux-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  background-color: var(--light-color);
  z-index: 4;
  border-top: 1px solid var(--dark-color);
}

.scroller {
  max-width: 100%;
}

.scroller__inner {
  display: flex;
  gap: var(--margin-width);
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

.scroller[data-animated="true"] {
  overflow: hidden;
}

.scroller[data-animated="true"] .scroller__inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll var(--_animation-duration, 60s) linear infinite;
}

@keyframes scroll {
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

.flux-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flux-item * {
  text-wrap: nowrap;
  font-size: 1rem;
}

.flux-item h3 {
  text-transform: capitalize;
}

.flux-item img {
  height: 2rem;
  width: auto;
}

/* main:has(#focus) > *:not(#focus) {
  filter: blur(20px);
} */

#focus {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 400px;
  background: var(--light-color);
  z-index: 10;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
  padding: 15px;
  cursor: move;
  aspect-ratio: 3/2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 1;
  visibility: visible;
  transition: visibility 0.3s linear, opacity 0.3s linear;
}

.focus-container {
  display: grid;
  grid-template-columns: 45% 10% 45%;
}

#focus p,
#focus h1 {
  color: var(--secondary-color);
}
#focus p {
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: bold;
  font-family: "ReviewWide";
}

.focus-infos {
  margin-top: 1rem;
}

.focus-center {
  display: flex;
  align-items: center;
}

.focus-center h2 {
  writing-mode: sideways-lr;
  font-weight: normal;
  font-family: "ReviewWide";
  text-transform: uppercase;
  color: var(--secondary-color);
}

.focus-date {
  text-transform: capitalize;
}

.focus-right {
  display: flex;
  flex-direction: column;
  align-items: end;
}

.timbre {
  width: 80px;
  flex-direction: row;
  padding: 5px;
  border: 3px solid var(--secondary-color);
}

.timbre svg > * {
  fill: var(--secondary-color) !important;
}

.line-container {
  width: 100%;
}

.line-container hr {
  height: 1.5rem;
  border: none;
  border-bottom: 3px dotted var(--secondary-color);
}

.focus-right p {
  letter-spacing: 0.1rem;
  text-align: right;
}

#focus > button {
  height: 3rem;
  margin: 0 auto;
  display: block;
  background: none;
  border: none;
  text-decoration: underline;
  font-family: "ReviewWide";
  font-weight: bold;
  cursor: pointer;
  color: var(--dark-color);
  font-size: 1rem;
}

.hidden-focus {
  opacity: 0 !important;
  visibility: hidden !important;
}

.cta-map {
  padding: 0 calc(var(--margin-width) * 2);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
  height: 50dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-map h1 {
  font-family: "ReviewWide", sans-serif;
  font-weight: bold;
  font-size: 2.2rem;
  line-height: 2.4rem;
  z-index: 3;
}

#map-planisphere {
  background-size: 180%;
  background-repeat: no-repeat;
  background-position: 25% 28%;
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: none;
  left: 0;
  top: 0;
  z-index: 1;
}

#map-background-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.25s linear;
  /* fallback color if JS is disabled */
  background: radial-gradient(
    circle at 50% 50%,
    rgba(187, 184, 184, 1) 0%,
    rgba(255, 255, 255, 0.12) 40%
  );
  mix-blend-mode: darken;
}

.cta-map .page-title,
.cta-map a {
  z-index: 2;
  position: relative;
}
.cta-map span {
  display: inline-block;
  transition: margin-left 0.3s ease;
}
.cta-map:hover span:last-child {
  margin-left: 0.5rem;
}

.cta-map .page-title {
  font-size: 4rem;
  line-height: 4.2rem;
}

footer {
  margin-top: 0;
  padding: var(--gutter-width) var(--margin-width) 4rem var(--margin-width);
}

@media screen and (max-width: 1000px) {
  .swiper-button-next,
  .swiper-button-prev {
    position: relative;
    width: 10%;
    height: 100%;
    top: 0;
    margin: 0;
    color: var(--dark-color);
    font-weight: bold;
    top: 0;
    position: absolute;
    display: flex;
  }
  .swiper-button-prev {
    left: -1.5rem;
    justify-content: center;
  }
  .swiper-button-next {
    right: -1.5rem;
    justify-content: center;
  }
  .expositions-container {
    position: relative;
    top: auto;
  }
  .swiper-slide-header {
    top: 0;
  }

  .swiper-slide {
    max-height: calc(100vh - 12rem);
    overflow: auto;
  }
}

@media screen and (max-width: 550px) {
  #focus {
    width: 90vw;
    top: 0 !important;
    bottom: 0 !important;
    margin: auto !important;
    left: 0 !important;
    right: 0 !important;
    position: fixed !important;
    transform: rotate(0deg) !important;
  }
}
