@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400&family=Playfair+Display:wght@600&display=swap');

:root {
  --bg: #111;
  --fg: #eee;
  --accent: #ff9af5;
  --thumb-shadow: rgba(255,255,255,0.05);
}
body.theme-dark {
  --bg: #111;
  --fg: #eee;
  --accent: #ccc;
  --thumb-shadow: rgba(0,0,0,0.5);
}



body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--fg);
}

header {
  background: #000;
  padding: 1.2rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 300;
}

nav {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1rem 0;
}

nav a {
  color: #aaa;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
}

nav a.active,
nav a:hover {
  color: var(--accent);
}

main {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
}

section {
  margin-bottom: 4rem;
}



.macy-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.macy-container a {
  display: block;
  border-radius: 4px;
 
}

/* --- Base Image Styles --- */
.macy-container img {
  width: 100%;
  display: block;
  border-radius: 4px;
  position: relative; /* Required for z-index */
  z-index: 1; /* Default stacking order */
  
  /* Apply transform using a variable and set a transition */
  transform: rotate(var(--image-rotate, 0deg));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Universal Hover Effect --- */
.macy-container a:hover img {
  /* On hover, read the variable and add the scale */
  transform: scale(1.03) rotate(var(--image-rotate, 0.2deg));
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 10; /* Bring hovered image to the front */
}


/* --- Alternating Styles (Now just set the variable) --- */
.theme-light .macy-container a img {
  --image-rotate: 0.08deg; /* Set rotation variable */
  box-shadow: -2px 5px 10px var(--thumb-shadow), 1px 2px 4px rgba(0,0,0,0.05);
}

.macy-container a:nth-child(even) img {
  --image-rotate: -0.2deg; /* Set rotation variable */
  box-shadow: -2px 3px 4px var(--thumb-shadow), 2px -2px 3px rgba(0,0,0,0.07);
}

.theme-light .macy-container a:nth-child(3n) img {
  --image-rotate: -0.2deg; /* Set rotation variable */
  box-shadow: 3px 1px 2px rgba(0, 0, 0, 0.08);
}

.theme-light .macy-container a:nth-child(4n) img {
  --image-rotate: 0.1deg; /* Set rotation variable */
  box-shadow: -3px 2px 3px rgba(0, 0, 0, 0.09);
}

.theme-light .macy-container a:nth-child(5n) img {
  --image-rotate: 0deg; /* Set rotation variable */
  box-shadow: 2px 3px 1px rgba(0, 0, 0, 0.05);
}


/* Contact form */

#contact {
  max-width: 500px;
  margin: auto;
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.3rem;
  background: #222;
  border: 1px solid #444;
  color: var(--fg);
  border-radius: 4px;
  resize: vertical;
}

.contact-form button {
  background: var(--accent);
  color: #111;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background: #ffcaf8;
}

header .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 1rem;
}

.logo-text {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
}

/* Info card */

#contact .info-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 2rem;
  gap: 2rem;
}

#contact .info-card div {
  flex: 1 1 250px;
  background: #222;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

#contact h3 {
  margin-top: 0;
  color: var(--accent);
}

/* Optional theme toggle button */

#theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--accent);
  color: #111;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  transition: background 0.2s;
}

#theme-toggle:hover {
  background: #ffcaf8;
}


body.theme-light {
  --bg: #fff;
  --fg: #222;
  --accent: #333;
  --thumb-shadow: rgba(0, 0, 0, 0.1);
  --gap: 20px;
}

.theme-light .gallery-grid {
  column-count: 6;
  column-gap: var(--gap);
  padding: var(--gap);
  max-width: 1600px;
  margin: 0 auto;
}

	#main-nav a.active {
	  color: white;
	    font-weight: bold;
		}
		

.theme-light .info-card {
  background: #fff;
    color: #ffff;
	  border: 1px solid #ccc;
	    padding: 1em;
		  border-radius: 8px;
		  }
		  
nav a.active {
  font-weight: bold;
    color: white;
	}
.macy-container {
  overflow: visible;
  }
  

  body.theme-dark .info-card {
  background: #222;
  color: #eee;
}
body.theme-light .info-card {
    background: #ffffff;
  color: #cccccc;
}
.info-card {
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 3px rgba(0,0,0,0.2);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}





.hamburger {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
  display: none;
}

#main-nav {
  display: flex;
  gap: 20px;
}

@media (max-width: 700px) {
  .hamburger {
    display: block;
  }

  #main-nav {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 999;
    padding: 1em;
  }

  #main-nav.open {
    display: flex;
  }
}

.section-title {
  text-align: center;
  font-size: 1.6em;
  font-weight: 500;
  margin: 1rem 0 0.7rem;
  position: relative;
  color: #333;
}

.section-header {
  text-align: center;
  margin: 3em 0 2em;
}

.section-name {
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  font-weight: 600;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.2em;
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
  text-align: center;
  width: 100%;
}

.section-name:focus {
  border-color: #6b9bd2;
}

.section-description {
  font-family: 'Inter', sans-serif;
  font-size: 1.05em;
  font-weight: 300;
  font-style: italic;
  color: #555;
  background: transparent;
  border: none;
  text-align: center;
  width: 100%;
  padding-top: -1em;
  margin-top: -0.4em;
  outline: none;
}

.centered-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}


/* Fix för textfärger på mörk bakgrund */
body.theme-dark {
    color: #e4e5e7; /* Ljusgrå text */
    background-color: #111;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
}

p, .description {
    color: #ccc;
}

/* Om du använder Fancybox eller liknande */
.fancybox__caption {
    color: #fff;
}
