/* ========================================================================== */
/*  MARK: @DESKTOP LAYOUT >900px  */
/* ========================================================================== */
:root {
  --header-height: clamp(80px, 10vw, 130px);
  --lightbox-gap: 0rem;
  --view-gap: 3rem; 
  --gallery-width:  clamp(360px,  80vw, 800px);
  --schedule-max-width:  clamp(320px,  50vw, 540px);
}
html, body {
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  scroll-behavior: auto;
  color-scheme: light;
  background: none;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #000 !important;
  box-sizing: border-box;
}

body {
  position: relative; 
}

body::before {
  content: "";
  position: fixed;
  inset: 0;    
  background: url("/Images/aurufest_bg_maples2.webp")
              no-repeat center top;
  background-size: cover;
  z-index: -1;   
}

h1, h2, h3,
.carousel, .caption, .site-nav a {
  font-family: 'Bebas Neue', cursive, sans-serif;
  letter-spacing: .05em;
  line-height: 1.5;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* =============================================================
   MARK:HEADER WRAPPER (fixed, gradient on scroll, body padding)
   ============================================================= */
   header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: clamp(85px, 10vw, 130px);
    z-index: 3000;
    scroll-padding-top: clamp(85px, 10vw, 130px);
    background: transparent;
    overflow: hidden;
  }

  header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(255, 163, 43), rgb(255, 138, 29));
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: -1;
  }

  header.scrolled::before { opacity: 1; }
  header.scrolled     { box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
  
  body {
    padding-top: clamp(85px, 10vw, 130px);
  }
  
 /* =======================================================
   INNER FLEX LAYOUT (1300px wide, centered, space-between)
   ======================================================== */
   .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: clamp(85px, 10vw, 130px);
    width: 100%;
    max-width: 1270px;
    margin: 0 auto;
    box-sizing: border-box;
  }

.header-actions {
  display: flex;
  align-items: center;
  padding: 0%;
  margin-right: 1rem;
  gap: clamp(0.5rem, 2vw, 1.5rem);
}

  /* MARK:LOGO */
  .logo-link {
    flex: 1;   
  }
  .site-logo {
    flex: 0 0 auto;     
    height: clamp(70px, 8.5vw, 120px);
    align-items: center;
    margin-top: 0.4rem;
    transition: filter .2s ease;
  }
  .logo-link:hover .site-logo {
    filter: brightness(1.5) contrast(0.7) saturate(1);
  }
  
  /* ─── 2+3) NAV + BUTTON ON THE RIGHT ───────── */
  .header-right {
    display: flex;
    align-items: center;
    gap: clamp(0.1rem, 7vw, 1rem);
  }
  
  .site-nav ul {
    display: flex;
    gap: clamp(0.1rem, 1vw, 1rem);
    margin: 0;
    padding: 7px 0 5px 0;
    list-style: none;
  }
  .site-nav a {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .05em;
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    line-height: 1;
    color: #000;
    text-decoration: none;
    transition: color .2s;
  }
  .site-nav a:hover,
  .site-nav a.active {
    color: #fff !important;
    text-shadow:
      1px 1px 3px rgba(0,0,0,.7),
      0 0 2px rgba(0,0,0,.5);
  }

  .buy-tickets-btn {
    flex: 0 0 auto;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .05em;
    font-size: clamp(.7rem, 1.5vw, 1.2rem);
    padding:  7px 10px 5px; 
    background: #f07b1b;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
    text-shadow:
    1px 1px 3px rgba(0, 0, 0, 1), 
    0 0 2px rgba(0, 0, 0, 1);   
    box-shadow: 0 1px 3px rgba(0,0,0,.6);
    transition: background .2s;
  }
  .buy-tickets-btn:hover {
    background: #ffac68;
  }
  
  .menu-toggle {
    display: none;
  }

/* ========================================================================== */
/* MARK:SECTIONS & CONTAINER */
/* ========================================================================== */

section {
  width: auto;
  max-width: 1000px;
  padding-top: 4rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  scroll-margin-top: clamp(70px, 7vw, 130px);
  box-sizing: border-box;
 }

:root {
  --light-orange: #ffc77e;   
  --dark-orange:  #ffb14a;  
}

section:nth-of-type(even) {
  background: linear-gradient(
    to bottom, 
    var(--light-orange),  
    var(--dark-orange)  
  );

  background: -webkit-linear-gradient(top, var(--light-orange), var(--dark-orange));
}

section:nth-of-type(odd) {
  background: linear-gradient(
    to bottom,
    rgba(255,165,0, 0.3), 
    #FFA500      
  );
  background: -webkit-linear-gradient(top, rgba(255, 175, 25, 0.5), #ffb657);
}
section h2, section a {
  color: inherit;
  padding-bottom: 2rem;
  margin: 0;}

.container {
  width: 1000px;
  width: clamp(120px, 100vw, 1000px);
  padding-right: 4rem;
  padding-left: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}
section#index {
  background: transparent !important;
  padding: 0;
}
section#index .container {
  padding-left: 0;
  padding-right: 0;
}

/* ========================================================================== */
/* MARK:Carousel (Index Section)                                              */
/* ========================================================================== */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  width: clamp(120px, 100vw, 1000px);
  margin: 0 auto;
  aspect-ratio: 16 / 7;
}
.carousel .slides {
  display: flex;
  height: 100%;
 
}
.carousel .slides img {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel .carousel-placeholder {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel .slide {
  position: relative; 
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

.carousel .slide .caption {
  position: absolute;
  display: flex;
  width:auto;
  white-space: nowrap; 
  bottom: 0rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(240,123,27,1);
  color: #fff;
  padding: 0.2rem 1.3rem;
  border-radius: 4px 4px 0 0 ;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: .05em;
  text-shadow:
    1px 1px 3px rgba(0, 0, 0, 1),
    0 0 2px rgba(0, 0, 0, 1); 
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,1);
  z-index: 1;
}

/* ==========================================================================
   MARK: Carousel & Lightbox Nav Buttons (shared styles)
   ========================================================================== */

.carousel-btn,
.lightbox-nav {
  width: 2rem;        
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  cursor: pointer;
  z-index: 2001;  
}

.carousel-btn .icon,
.lightbox-nav .icon {
  width: 1.5rem;  
  height: auto;  
  display: block;   
}

.carousel-btn.prev {
  left: 0.5rem;
}
.carousel-btn.next {
  right: 0.5rem;
}

.lightbox-prev {
  left: 0.5rem;
}
.lightbox-next {
  right: 0.5rem;
}

/* ========================================================================== */
/* MARK: etusivu images                                                      */
/* ========================================================================== */
#etusivu .frontpage-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 2fr));
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2rem; 
}

#etusivu .frontpage-images img {
  width: 100%;
  height: auto; 
  flex-wrap: wrap;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  object-fit: cover;
}

#etusivu .schedule-image {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  width: 90%;
  max-width: 600px; 
  margin: 0 auto 2rem; 
}

#etusivu .schedule-image img {
  width: 100%; 
  height: auto; 
  flex-wrap: wrap;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  object-fit: cover;
}


/* ========================================================================== */
/* MARK:Location images */
/* ========================================================================== */
.location-info {
  display: flex;
  width: auto;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.map-container {
  position: relative;
  width: 100%;
  height: 400px;   
  max-width: 100%;   
  border-radius: 8px;  
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.map-container iframe {
  border-radius: 8px;
  display: block;   
  width: 100%;
  height: 100%;
}
.map-placeholder {
  position: relative;
  top: 0; left: 0;
  width: 100%;
  height: 400px;
  max-width: 100%; 
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff !important; 
  border-radius: 8px;   
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.map-placeholder p {
  margin: 0 0 1em;
}

.map-placeholder .map-external-link,
.map-placeholder .cookie-settings-btn {
  display: inline-block;
  padding: 0.5em 1em;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .05em;
  text-decoration: none;
  border-radius: 4px;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.7), 
    0 0 2px rgba(0, 0, 0, 0.5); 
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.map-placeholder .map-external-link {
  background: #fff;
  color: #f07b1b;
  border: 1px solid rgba(240,123,27,0.6);
}

.map-placeholder .map-external-link:hover {
  background: #f7f7f7;
}

.map-placeholder .cookie-settings-btn {
  background: #f07b1b;
  color: #fff;
  border: none;
}

.map-placeholder .cookie-settings-btn:hover {
  background: #ffac68;
}
.schedule-image img {
  cursor: pointer;
}

/* ========================================================================== */
/* MARK:ARTIST LIST */
/* ========================================================================== */

.artist-filters {
  display: flex;
  flex-wrap: wrap;  
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  flex: 0 0 50px;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(240,123,27,0.6) !important;
  background: rgba(255,255,255,0.8) !important;
  color: rgba(240,123,27,0.8) !important;
  text-shadow: none;
  letter-spacing: .05em;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif;
}
.filter-btn.active {
  border: 1px solid rgb(180, 81, 0) !important;
  background: #f07b1b !important; 
  color: #ffffff !important;
  text-shadow:
    1px 1px 3px rgba(0, 0, 0, 0.7), 
    0 0 2px rgba(0, 0, 0, 0.5);
    letter-spacing: .05em;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@media (max-width: 480px) {
  .filter-btn {
    flex: 0 0 40px;
  }
}

@media (max-width: 320px) {
  .filter-btn {
    flex: 0 0 40px;
  }
}
.artist-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-sizing: border-box;
  
}
.artist-list .artist {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  width: auto;
  background: #fff !important;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  padding: 1rem; 
}

.artist-list .artist {
  flex-direction: row;
}

.artist-list .artist[data-stage="Aurulava"] .artist-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  text-align: left;
}
.artist-list .artist[data-stage="Aurulava"] .read-more {
  align-self: flex-start;
}

.artist-list .artist[data-stage="Kellarilava"] {
  flex-direction: row-reverse;
}
.artist-list .artist[data-stage="Kellarilava"] .artist-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;   
  text-align: right;
}
.artist-list .artist[data-stage="Kellarilava"] .read-more {
  align-self: flex-end;
}

.artist-image {
  width: 350px;  
  max-width: 100%;  
  aspect-ratio: 4 /3;  
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  flex-shrink: 0;    
  position: relative;
}
.stage-label {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #f07b1b;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 0 0 4px 4px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: .05em;
  text-shadow:
    1px 1px 3px rgba(0, 0, 0, 0.7), 
    0 0 2px rgba(0, 0, 0, 0.5);  
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  z-index: 1;
}

.stage-label {
  top: 0rem;
  left: auto;
  right: auto;
  transform: none;
}

.artist[data-stage="Aurulava"] .stage-label {
  left: 0.5rem;
  right: auto;
}

.artist[data-stage="Kellarilava"] .stage-label {
  right: 0.5rem;
  left: auto;
}
.artist-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artist-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-left: auto;
  box-sizing: border-box;
  
}
.artist-info h3 {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  letter-spacing: .05em;
}
.artist-list .artist-info h4 {
  margin: 0;
  text-align: center;
}
.artist-info p {
  max-height: 4.9rem;
  line-height: 1.5;
  padding-top: 1rem;
  padding-bottom: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: max-height 0.5s linear;
}
.artist-info.expanded p {
  max-height: 1000px;
}
.artist-list .artist-info .read-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border: 1px solid rgb(180, 81, 0) !important;
  border-radius: 4px;
  background: #f07b1b !important;
  color: #ffffff !important;
  text-shadow:
    1px 1px 3px rgba(0, 0, 0, 0.7),   /* main shadow */
    0 0 2px rgba(0, 0, 0, 0.5);       /* gentle halo */
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .05em;
  font-size: 1rem;
  margin-top: 1rem;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.artist-list .artist-info .read-more:hover {
  background: #ffac68 !important;
  color: #ffffff;
}


/* === MARK:Tickets  === */
.tickets-bg {
  background-color: #ffd9a8;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  padding: 4rem;
  max-width: 800px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0rem;
}

.tickets-buy__title {
  margin: 0;
  text-align: center;
  font-size: 1.4rem;
}

.tickets-buy__options {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
  justify-content: center;
}
.tickets-buy_gate {
  background-color: #ffd9a8;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  padding: 4rem;
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap; 
}
.ticket-list {
  list-style: none;  
  padding: 0rem;
  margin: 0 auto;  
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.ticket-list li {
  flex: 1 1 240px;      
  line-height: 1.3em;
  margin-bottom: 0em;   
  padding-left: 2em;   
  text-indent: -2.2em;   
  text-align: left;  
}

/* === Bus Timetable === */
.bus-timetable {
 background-color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  padding: 4rem;
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap; 
}

.bus-day {
  flex: 1 1 1;
}

.bus-day h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  text-align: left;
}

.bus-day ul {
  list-style: none;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.bus-day li {
  margin: 0.4rem 0;
  text-align: left;
}


@media (max-width: 480px) {
  .tickets-bg {
    padding: 1rem;
  }
  .tickets-buy__title {
    font-size: 1.2rem;
  }
  .bus-timetable {
    padding: 2rem;
  }
  .bus-day h3 {
    font-size: 1.1rem;
  }
}

/* ────────────────────────────────────────────────────────────────────────── */
/* MARK: Feedback List                                                          */
/* ────────────────────────────────────────────────────────────────────────── */
.feedback-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 1000px;
  width: 100%;
}

.feedback-entry {
  position: relative;
  background: #fff;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1.5rem);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  overflow-wrap: break-word;
  overflow: visible;
  hyphens: auto;
}

.feedback-entry::before {
  content: "“"; 
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 5rem; 
  line-height: 1;
  position: absolute;
  top: 0;      
  left: clamp(0.5rem, 1vw, 1rem);  
  transform: translateY(-35%);    
  color: rgba(0, 0, 0, 1);
  pointer-events: none;
}

.fb-name {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.fb-date {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.fb-message p {
  white-space: pre-wrap;
  margin-bottom: 0;
  padding-bottom: 0;
}

.fb-message p + p {
  margin-top: 0.5rem;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* MARK: Feedback Form                                                          */
/* ────────────────────────────────────────────────────────────────────────── */
.feedback-form {
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  margin: auto ;
  overflow: hidden;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.feedback-form input,
.feedback-form textarea {
  font-family: 'Roboto', sans-serif;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  padding-block: 0.5rem;
  padding-inline: clamp(0.5rem, 3vw, 1rem);
  border: 1px solid #0000004b;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.feedback-form button {
  display: inline-block;
  padding: 0.5rem 1rem;
  align-self: center;
  text-decoration: none;
  border: 1px solid #f07b1b !important;
  border-radius: 4px;
  background: #f07b1b !important;
  color: #ffffff !important;
  text-shadow:
    1px 1px 3px rgba(0, 0, 0, 0.7),  
    0 0 2px rgba(0, 0, 0, 0.5);     
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .05em;
  font-size: 1rem;
  margin-top: 1rem;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.feedback-form button:hover {
  background: #e66a0f;
}
.feedback-private {
  display: inline-flex; 
  align-items: center;  
  gap: 0.5rem;  
  margin-bottom: 1rem;
  font-size: 0.9rem;
  cursor: pointer; 
}

.feedback-private input[type="checkbox"] {
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
}

#feedback-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 20px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 10000;
}

#feedback-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ========================================================================== */
/* MARK:BACK-TO-TOP BUTTON */

#back-to-top-float {
  position: fixed;
  bottom: 3.3rem;
  right: calc(
    (100% - clamp(120px, 100vw, 1300px)) / 2
    + 5rem
  );

  background: none;
  border: none;
  padding: 0;
  box-shadow: none;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1001;

  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top-float.show {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top-float .back-to-top-icon {
  width: 4rem;
  height: 4rem;
  display: block;
}

/* ========================================================================== */
/* MARK: GALLERY IMAGES */
/* ========================================================================== */
.gallery-images {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

.gallery-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-images img:hover {
  transform: scale(1.05);
}

/* ========================================================================
   MARK: HISTORIIKKI
   ======================================================================== */
#history ul {
  text-align: left;  
  margin: 2rem 0;  
  list-style-position: inside; 
  border-radius: 4px;
}

/* ========================================================================
   MARK: AUTHORS IMAGES
   ======================================================================== */

.authors {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  height: auto;
  margin: 0 auto 2rem;
}

.author {
  text-align: center;
  max-width: 30%;
}

.author img {
  justify-self: center;
  width: 70%;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.author h3 {
  margin: 0.5rem 0 0.25rem;
  font-family: 'Bebas Neue', cursive, sans-serif;
  letter-spacing: .05em;
  line-height: 1.5;
  font-size: 1.2rem;
}

.author p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}
  
/* ========================================================================== */
/* MARK: Lightbox */
/* ========================================================================== */

.lightbox {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--header-height));
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
}
.lightbox.open {
  display: flex;
}

.lightbox-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-view {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  max-width: 90vw !important;
  max-height: calc(100vh - var(--header-height) - 4rem) !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  aspect-ratio: auto !important;
}

#gallery-lightbox .lightbox-image {
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  max-width: 90vw !important;
  max-height: calc(100vh - var(--header-height) - 4rem) !important;
  object-fit: contain !important;
  object-position: center !important;
  aspect-ratio: auto !important;
}

#schedule-lightbox .lightbox-image {
  aspect-ratio: 9 / 16;
  width: 95%;
  max-width: var(--schedule-max-width);
  height: auto;
  object-fit: cover;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0);
  width: 10rem;
  height: 10rem;
  border: none;
  padding: var(--view-gap);
  cursor: pointer;
  color: #fff;
  font-size: 1.5rem;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.lightbox-nav::-moz-focus-inner,
.lightbox-close::-moz-focus-inner {
  border: 0;
}
.lightbox-nav:active,
.lightbox-close:active {
  background: transparent;
}
#gallery-lightbox .lightbox-prev,
#schedule-lightbox .lightbox-prev {
  left: calc(-1 * var(--view-gap));
}

#gallery-lightbox .lightbox-next,
#schedule-lightbox .lightbox-next {
  right: calc(-1 * var(--view-gap));
}

.lightbox-close {
  position: absolute;
  top: -5rem;
  right: -2rem;
  background: rgba(0,0,0,0);
  border: none;
  padding: var(--view-gap);
  cursor: pointer;
  color: #ff0000;
  font-size: 2rem;
}
/* ========================================================================== */
/* MARK: COOKIE POPUP                                                  */
/* ========================================================================== */

.cookie-overlay {
  position: fixed;
  inset: 0;   
  background: rgba(0,0,0,0.6);
  z-index: 10000;
}
.cookie-overlay.hidden {
  display: none !important;;
}

.cookie-banner {
  position: fixed;
  width: clamp(600px, 100vw, 700px);
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  display: flex;
  flex-direction: column;    
  justify-content: center;  
  align-items: center;    
  padding: 3rem;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  color: #000;
  overflow: hidden;
  text-align: center;     
}

body.cookie-modal-open {
  overflow: hidden;
}

.cookie-banner p.cookie-message {
  flex: 1 1 auto;
  margin: 0 0 1rem;
  overflow-y: auto;     
  align-self: stretch;    
  display: flex;
  align-items: center;   
  justify-content: center;   
  padding: 0 1rem;
}

.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: column; 
  align-items: center;   
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-banner .cookie-buttons button,
.cookie-banner .cookie-buttons a {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: .05em;
  transition: background 0.2s;
  
}
#cookie-accept-all {
  background-color: #f07b1b;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.6);
  text-shadow:
  1px 1px 3px rgba(0, 0, 0, 1),
  0 0 2px rgba(0, 0, 0, 1); 
}
#cookie-accept-all:hover {
  background-color: #ffac68;
  box-shadow: 0 1px 3px rgba(0,0,0,.6);
}
#cookie-accept-necessary {
  background-color: rgba(255,255,255,0.8);
  color: #db6505;
  border: 1px solid rgba(240,123,27,0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
#cookie-accept-necessary:hover {
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.6);
}
#cookie-read-more {
  background: none;
  text-decoration: underline;
  color: #000;
}

.cookie-banner.hidden {
  display: none;
}

@media (max-width: 400px) {
  .cookie-banner {
    width: auto; 
    height: auto;
    max-height: 90vh;
  }
}
/* ========================================================================== */
/* MARK:Footer */

footer {
  display: flex;
  justify-content: center; 
  align-items: center; 
}

footer p {
  color: #000 !important;
  margin: 0;   
  padding: 0.2rem 0;
}

footer a {
  color: #000 !important;
  text-decoration: underline; 
  transition: color 0.2s;  
}







/* ==========================================================================
  MARK:@MOBILE LAYOUT (<800px)
========================================================================== */
@media (max-width: 736px) {

  html, body {
  min-height: 100dvh;
  background-image: url('Images/aurufest_bg_maples2.webp') !important;
  background-repeat: no-repeat;
  background-position: top;
  background-attachment: top;
  background-size: 700px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: auto;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #000 !important;
  display: flex;
  flex-direction: column;
}
  
h1, h2, h3, .carousel, .caption, .site-nav a {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .05em;
  width: 100%;
  line-height: 1.5;}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;}

  /* ========================================================================== */
  /* MARK:HEADER   */
  /* ========================================================================== */

    
    header {
      position: fixed;  
      top: 0;    
      left: 0;      
      width: 100%;   
      z-index: 3000;   
      overflow: visible; 
      height: clamp(80px, 8vw, 80px);
    }
    body {
      padding-top: clamp(80px, 8vw, 80px);
    }
    .header-inner {
      display: flex;
      align-items: center;
      padding-right: 0rem;
      padding-left: 0rem;
      justify-content: space-between;
      width: 100%;
      height: 100%;
      box-sizing: border-box;
    }
    .site-logo {
      height: clamp(80px, 6vw, 60px);
      
    }
    .header-actions {
      display: flex;
      align-items: center;
      gap: clamp(0.25rem, 1vw, 0.1rem);
    }
    .buy-tickets-btn {
      font-size: 1rem;
      margin-right: 0.4rem;
      padding-top: 0.3rem;
      padding-bottom: 0.3rem;
      padding-left: 0.6rem;
      padding-right: 0.6rem;
      box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    }
    @media (max-width: 319px) {
      .buy-tickets-btn {
        font-size: 0.6rem;
        margin-right: 0.1rem;
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
        padding-left: 0.6rem;
        padding-right: 0.6rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.4);
      }
      .site-logo {
    flex: auto;
        height: clamp(60px, 6vw, 60px);
        padding-top: 0rem;
      }
    }
    /* MARK:Menu toggle  */
    .menu-toggle {
      display: inline-flex;
      background: none;
      border: none;
      -webkit-appearance: none;
      appearance: none;
      color: #000;
      cursor: pointer;
      width: clamp(40px, 8vw, 40px);
      height: clamp(40px, 8vw, 40px);
      padding: 0;
    }
    .menu-toggle .menu-icon {
      width: 100%;
      height: 100%;
    }
    .menu-toggle .menu-icon path {
      stroke: currentColor;
    }
    .menu-toggle .menu-icon--close {
      display: none;
    }
    .menu-toggle.open .menu-icon--hamburger {
      display: none;
    }
    .menu-toggle.open .menu-icon--close {
      display: block;
    }
  
    .site-nav {
      position: fixed;  
      top: 80px;  
      right: 0%;
      width: 125px; 
      background: #ffae45 !important;
      padding: 1rem;
      border-radius: 4px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.3);
      display: none; 
      flex-direction: column;
      align-items: center;
      z-index: 1001;  
    }
    .site-nav.open {
      display: flex;
    }
    .site-nav ul {
      width: 100%;
      list-style: none;
      margin: 0;
      
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .site-nav a {
      display: block;
      font-size: 1rem;
      width: 100%;
      text-align: center;
  }
  
/* ========================================================================== */
/* MARK:Section & Container styles */

  section {
    width: auto;
    max-width: 1200px;
    display: flex;
    padding-top: 4rem;
  padding-bottom: 4rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
  }

  .container {
    width: 100%;
    margin: 0 auto;
    padding-right: 1rem;
    padding-left: 1rem;
    padding-top: 2rem;
  padding-bottom: 1rem;
    width: clamp(120px, 100vw, 1200px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
  }
  section#index {
    background: transparent !important;
    padding-block: 0;
  }
  section#index .container {
    padding-block: 0;
  }
  .carousel .slide .caption {
    font-size: 1.3rem;
    padding: 0 1rem;
  }

  /* ========================================================================== */
  /* MARK:Carousel caption */
  .carousel .slide .caption {
    position: absolute;
    bottom: 0rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(240,123,27,1);
    color: #fff;
    white-space: nowrap; 
    padding: 0.2rem 1rem;
    border-radius: 4px 4px 0 0 ;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.8rem;
    letter-spacing: .05em;
    text-shadow:
      1px 1px 3px rgba(0, 0, 0, 1), 
      0 0 2px rgba(0, 0, 0, 1);  
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0,0,0,1);
    z-index: 1;
  }

/* ========================================================================== */
/* MARK:Location images */

.location-info {
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem; 
}

.location-info p {
  width: 100%;
  box-sizing: border-box;
  padding: 0 0.5rem; 
  word-wrap: break-word; 
  overflow-wrap: break-word; 
}

/* ========================================================================== */
/* MARK:Artist list */

.artist-image {
  width: 100%;   
  max-width: 100%;  
  aspect-ratio: 4 / 3;
}

.artist-image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  object-fit: cover; 
}
.artist-list {
  display: flex;
  flex-direction: column;
  gap: 0rem;
  box-sizing: border-box;
}

.artist-list .artist {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1rem;
  padding: 1rem;
  box-sizing: border-box;
  margin-bottom: 1rem;
  background: #fff !important;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.artist-list .artist-info {
  display: grid !important;   
  grid-template-columns: 1fr;
  grid-template-areas:
    "name"
    "time"
    "desc"
    "btn";
  gap: 0.5rem;
  text-align: center !important;
}

.artist-list .artist-info h4 {
  grid-area: time;
  text-align: center !important;
  margin: 0;
}

.artist-list .artist-info h3 {
  grid-area: name;
  margin: 0;
  text-align: center;
}

.artist-list .artist-info p {
  grid-area: desc;
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

.artist-list .artist-info .read-more {
  display: inline-block;
  width: 100%;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border: 1px solid #f07b1b !important;
  border-radius: 4px;
  background: #f07b1b !important;
  color: #ffffff !important;
  text-shadow:
    1px 1px 3px rgba(0, 0, 0, 0.7), 
    0 0 2px rgba(0, 0, 0, 0.5);  
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .05em;
  font-size: 1rem;
  margin-top: 1rem;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.artist-list .artist-info .read-more:hover {
  background: #ffac68 !important;
  color: #ffffff !important;
}
.artist-list .artist[data-stage="Päälava"],
.artist-list .artist[data-stage="Kellarilava"] {
  flex-direction: column !important;
  justify-self: center;
}

.artist-list .artist[data-stage="Päälava"] .read-more,
.artist-list .artist[data-stage="Kellarilava"] .read-more {
  justify-self: end;
  margin-top: 1rem !important;
}


/* ========================================================================== */
/* MARK:Gallery images */

.gallery-images {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.5rem;
}

.gallery-images img:not(.back-to-top-icon) {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 480px) {
  .gallery-images {
    grid-template-columns: repeat(2, 1fr);
  }
}

section {
  padding-block: 2rem;        
}

/* ========================================================================== */
/* MARK:Back-to-top button */

#back-to-top-float {
  left: auto;  
  bottom: 2rem;
  right: 2rem; 
  transform: none;  
}
/* ========================================================================
   MARK: AUTHORS IMAGES
   ======================================================================== */

   .authors {
    display: grid;
   
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    width: 100%;
    height: auto;
    margin: 0 auto 2rem;  
  }
  
  .author {
    text-align: center;
    max-width: 100%;
  }
  
  .author img {
  justify-self: center;
  width: 70%;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }
  
  .author h3 {
     margin: 0.5rem 0 0.25rem;
  font-family: 'Bebas Neue', cursive, sans-serif;
  letter-spacing: .05em;
  line-height: 1.5;
  font-size: 1.2rem;
  }
  
  .author p {
   margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  } 
}
