:root {
  --background: #111;
  --text: #fff;
  --title: #f2f2f2;
  /* --primary: #5050ef; */
  --primary: #00ffff;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #111;
  color: #fff;
  padding-top:5rem;
  min-height: 100vh;
  position: relative;
  padding-bottom: 11rem;
}

nav {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(0, 0, 0, 1);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  height:5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
}

nav a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: var(--primary);
}

section.section_hero {
  height: 50vh !important;
}

#band_title_image.hero {
  /* height: 100vh; */
  background: url('assets/bild1.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

.hero > div.overlay > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  z-index: 2;
  max-width: 90%;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  filter: drop-shadow(0px 0px 12px rgba(0, 0, 0, 100%));
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  padding: 12px 28px;
  background: var(--primary);
  color: #111;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #00cccc;
}

section {
  padding: 100px 20px;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.03);
}

.card {
  max-width: 600px;
  margin: auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  font-size: 1.1rem;
}

footer {
  text-align: center;
  padding: 40px 20px;
  background: #0a0a0a;
  font-size: 0.9rem;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-direction: column;
  z-index: 90;
}

footer p {
  margin: 0;
}

footer a {
  color: #fff;
}


.donate {
  background: #ffc439;
  color: #111;
  font-weight: bold;
}
.donate:hover,
.donate:focus,
a.donate-btn:hover,
a.donate-btn:focus {
  background: #ffb347 !important;
  color: initial;
}


.donate-nav {
  background: #ffc439;
  color: #111;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: bold;
  transition: 0.3s;
}

.donate-nav:hover {
  background: #ffb347;
}


/* Mobile Navigation */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background: white;
  margin: 4px 0;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    width: 200px;
    display: none;
    border-radius: 10px;
    padding: 20px;
    z-index: 1000;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }
}


.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
}

.nav-list {
  list-style: none;
  display: flex;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #111;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    width: 200px;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li {
    margin: 10px 0;
  }
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  z-index: 1000;
  position: fixed;
}

.navbar .logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 25px;
  background-color: white;
  margin: 4px 0;
  border-radius: 2px;
}

.nav-list {
  list-style: none;
  display: flex;
  padding: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  text-decoration: none;
  color: white;
}

ul.nav-list li a.donate-btn {
  background-color: #ffc233;
  border-radius: 999px;
  font-weight: bold;
  color: black;
  text-decoration: none;
  margin: 20px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  margin-top: 1rem;
}

.donate-btn > span {
  white-space: nowrap;
}

section > div.grid {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

section > div.grid > div.grid-item {
  aspect-ratio: 3/4;
  width: calc(25% - 15px);
  height: auto;
  display: block;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

section#bands > div.grid-item,
section#gallery > div.grid-item {
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  aspect-ratio: var(--aspect-ratio);
  /* border: 1px solid #ffffff38; */
}

section#bands > div.grid-item {
  cursor: pointer;
}

/* section#gallery > div.grid-item p {
  position: relative;
  top: auto;
  left: auto;
  transform: unset;
  margin-top: 0.5rem;
} */

section#gallery > div.grid-item p a {
  text-decoration: unset;
  color: inherit;
  font-size: 1.5rem;
}

section#gallery > div.grid-item img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

section > div.grid-item > a {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
}

section > div.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

section > div.grid-item:hover img, 
section > div.grid-item a:focus img {
  opacity: 1;
}

/* section > div.grid-item p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2rem;
  margin: 0;
  width: 100%;
  padding: 0 1rem;
  opacity: 1;
  z-index: 2;
} */

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  text-align: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  margin-bottom: 20px;
}

.close, .prev, .next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2em;
  font-weight: bold;
  cursor: pointer;
  padding: 10px;
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  z-index: 1001;
}

.close { right: 20px; top: 20px; transform: none; }
.prev { left: 20px; }
.next { right: 20px; }


a#back {
  position: absolute;
  top: 6rem;
  left: 2rem;
  z-index: 999;
  color: inherit;
  background: #000;
  width: 3rem;
  height: auto;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
  font-size:  1.25rem;
  cursor: pointer;
}

body.scrolled a#back {
  position: sticky;
  top: 7.5rem;
  left: 2rem;
  height: 0;
  cursor: pointer;
}

body.scrolled a#back:before {
  content: '';
  background: #000;
  width: 3rem;
  height: 3rem;
  border-radius: 100%;
  position: absolute;
  z-index: -1;
  box-shadow: 0 0 20px rgba(0, 0, 0, 10%);
}

div#lightbox a[download] {
  position: absolute;
  left: 50%;
  bottom: 3rem;
  background: transparent;
  transform: translateX(-50%);
}

div#lightbox a[download] > button {
  background: none;
  color: inherit;
  border: 1px solid;
  padding: 1rem;
  color: #fff;
  font-size: 1.125rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: 0.4s ease;
}

div#lightbox a[download] > button:hover, 
div#lightbox a[download] > button:focus {
  background: #fff;
  color: #000;
  border-color: #fff;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
    display: none;
    border-radius: 10px;
  }

  .nav-list.active {
    display: flex;
    width: auto;
    align-items: start;
  }

  .nav-list li {
    margin: 10px 0;
  }
}

.lightbox img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

a {
  color: inherit;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 25px;
  background-color: white;
  margin: 4px 0;
  border-radius: 2px;
}

.nav-list {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 20px;
  background-color: #111;
  border-radius: 12px;
}

.nav-list.active {
  display: flex;
}

.nav-list li {
  list-style: none;
}

.nav-list a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 1rem;
}

.donate-btn {
  background-color: #ffc233;
  border-radius: 999px;
  font-weight: bold;
}
.nav-list a.donate-btn,
.donate-btn:hover, .donate-btn:focus {
  color: #000;
}
section.section_gallery#gallery > div.grid-item {
  max-width: 300px;
}
section.section_gallery div.grid-item p {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  font-size: 2rem;
  height: auto;
  margin: 0;
  padding: 0 1rem;
  box-sizing: border-box;
  gap: 2rem;
  z-index: 10;
}

section#bands, 
section#gallery {
  padding: 1rem 1rem 2rem;
  --columns: 4;
  --aspect-ratio: 2/3;
  gap: 20px;
  justify-content: center;
}

section#bands {
  --columns: 4;
  --aspect-ratio: 3/4;
  padding-bottom: 2rem;
}

section#bands.section_gallery div.grid-item p {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: fit-content;
  margin: 0;
  color: #fff;
}

section:has(div.card) {
  padding: 1rem;
}

section.hero a.button {
  color: var(--primary);
  border: 1px solid;
  padding: 0.5rem 1rem;
  border-radius: 10rem;
  font-size: 1rem;
  transition: 0.4s ease;
}

section.hero a.button:hover, 
section.hero a.button:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--background);
  filter: drop-shadow(0px 0px 11px var(--primary));
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.75rem;
}

form .input {
  border: 1px solid;
  width: 100%;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  position: relative;
  --background: #1d1d1d;
  background: var(--background);
}

form .input > input, 
form .input textarea {
  padding: 1.25rem 0.75rem 0.615rem;
  font-size: 1rem;
  width: 100%;
  background: transparent;
  color: #fff;
  outline: none;
  border: none;
}

form .input > label {
  position: absolute;
  background: var(--background);
  top: 0;
  left: 0.5rem;
  transform: translateY(-50%);
  padding: 0 0.5rem;
  font-size: 1rem;
  line-height: 1rem;
}

form .input.button > button {
  border: none;
  background: none;
  color: inherit;
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  cursor: pointer;
  outline: none;
  transition: 0.4s ease;
}

form .input:has(textarea:focus),
form .input:has(input:focus), 
form .input:has(button:focus) {
  color: var(--primary);
}

form .input.button > button:hover {
  background: var(--primary);
  color: var(--background);
}

form .input.button:has(button:hover) {
  border-color: var(--primary);
}

form .input.button {
  overflow: hidden;
}

div.card > *:first-child {
  margin-top: 0;
}

div.card > *:last-child {
  margin-bottom: 0;
}

form .input textarea {
  resize: vertical;
  min-height: 3.5rem;
  font-family: inherit;
}

form .input.phone {
  display: none;
  visibility: hidden;
  user-select: none;
}

@media screen and (max-width: 1000px) {
  section#bands > div.grid-item,
  section#gallery > div.grid-item {
    aspect-ratio: 3/4;
    width: calc(33% - 11px);
  }

  section.hero a.button {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--background);
    filter: drop-shadow(0px 0px 11px var(--primary));
  }
}

@media screen and (max-width: 720px) {
  section#bands > div.grid-item,
  section#gallery > div.grid-item {
    aspect-ratio: 3/4;
    width: calc(50% - 10px);
  }

  section#gallery > div.grid-item p {
    font-size: 1.5rem;
  }
  
  
  section.hero h2 {
    font-size: 2rem;
  }
}

