* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0e0e0e;
  color: #f2f2f2;
  line-height: 1.6;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

/* Skip link for keyboard users */
.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #111;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  z-index: 9999;
}

header {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

header a {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.3s;
}

header a:hover {
  opacity: 0.7;
}

.music-icon {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.music-icon svg {
  width: 24px;
  height: 24px;
  fill: #f2f2f2;
  transition: opacity 0.3s;
}

.music-icon:hover svg {
  opacity: 0.7;
}

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.content {
  max-width: 720px;
  position: relative;
}

.hero {
  display: block;
  max-width: 720px;
  margin: -72px auto 28px; /* pull image closer to the lead text */
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

/* Inline image uses same visual treatment as hero */
.inline-image {
  display: block;
  max-width: 480px; /* make the inline image smaller */
  margin: 20px auto 28px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.inline-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

@media (max-width: 640px) {
  .inline-image { max-width: 320px; margin: 12px auto 18px; }
}

.hero-caption {
  margin-top: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
}

@media (max-width: 640px) {
  .hero { margin: -36px auto 20px; }
  .hero img { border-radius: 6px; }
}

h1 {
  font-size: 3rem;
  margin-bottom: 12px;
  font-weight: 600;
}

h2 {
  font-size: 1.6rem;
  margin-top: 160px;
  margin-bottom: 16px;
  font-weight: 500;
}

@media (max-width: 640px) {
  h2 { margin-top: 48px; }
}

p {
  font-size: 1.05rem;
  opacity: 0.9;
}

.tagline {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 48px;
}

@media (max-width: 640px) {
  .tagline { margin-bottom: 24px; }
}

a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

a:hover {
  border-bottom-color: #ffffff;
}

footer {
  opacity: 0.5;
  font-size: 0.9rem;
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ---- CANVAS LAYERS ---- */

canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
}

#wave {
  z-index: 0;
}

#grain {
  z-index: 2;
  mix-blend-mode: overlay;
  opacity: 0.18;
}

@media (prefers-reduced-motion: reduce) {
  :root { --reduced-motion: 1; }
  canvas { display: none; }
}

.contact-heading {
  text-decoration: none;
  border: none;
}

.contact-heading h2 {
  transition: opacity 0.3s;
}

.contact-heading:hover h2 {
  opacity: 0.7;
}
.gallery {
  display: flex;                 /* Aktivera flexbox – detta saknas i din snutt */
  flex-wrap: wrap;               /* Låt dem wrappa till ny rad vid behov */
  justify-content: center;       /* Centrera hela raden – så de inte hamnar till vänster */
  gap: 0.4rem;                   /* 24px mellanrum, justera efter smak */
  width: 100%;                   /* Tar full bredd inom sin förälder */
  max-width: 1400px;             /* Bra tak för de flesta desktop-skärmar */
  margin: 0 auto;                /* Centrerar containern */
  padding: 1rem 1rem;
  box-sizing: border-box;
}

.gallery-item {
  flex: 0 1 280px;               /* Basbredd ~320px, växer INTE, krymper vid behov */
  min-width: 240px;              /* Förhindrar att de blir för små innan wrap */
  max-width: 400px;              /* Tak så de inte blir enorma */
  width: auto !important;        /* Överrid eventuellt 30% eller 100% */
  text-align: center;            /* Centrera bild + caption inuti item */
}

.gallery-item img {
  width: 100%;                   /* Bild fyller hela .gallery-item */
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  transition: transform 0.35s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* För små skärmar – behåll två eller en */
@media (max-width: 900px) {
  .gallery-item {
    flex: 0 1 45%;               /* Två bredvid på tablet/mindre laptop */
  }
}

@media (max-width: 640px) {
  .gallery {
    gap: 1rem;
    padding: 1.5rem 0.8rem;
  }
  .gallery-item {
    flex: 0 1 100%;              /* En i taget på mobil */
  }
}

/* Se till att section inte begränsar */
section:has(.gallery) {
  display: block;
  width: 100%;
  max-width: none;
  padding: 2rem 4vw;
  min-height: auto;
}
