
img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* General reset for margins and paddings */
ul {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color:#000000
}
.nav-img {
    display: block;
    text-align: left;
    width: 230px; /* Or however large you want */

}
.nav-left {
    position: absolute;
    left: 20px; /* Adjust spacing from the left */
    margin-top: -40px;
}

.nav-right{
    position: absolute;
    right: 20px; /* Adjust spacing from the left */
    vertical-align: 70px;
    margin-top: -2%;
}

.nav-center {
    display: flex;
    gap: 20px; /* Spacing between menu items */
    vertical-align: middle;
}
/* Style the navigation bar */
nav {
    position: fixed;
    top: -100px; /* Instead of -100px, partially hidden */
    left: 0;
    width: 100vw;
    background-color: #ffffff;
    color: black;
    padding: 20px 0;
    z-index: 1000;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    transition: top 0.3s ease-in-out; /* Smooth transition */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow for visibility */
}

.nav-hover-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 60px; /* Same height as hidden navbar */
    z-index: 999; /* Below navbar but still interactive */
}

.albumContainer11 {
    display: flex;
    justify-content: space-between; /* Distributes images evenly */
    align-items: center; /* Aligns them in the center vertically */
    flex-wrap: wrap; /* Allows wrapping if the screen is small */
    width: 100%;
    max-width: 1200px; /* Adjust this as needed */
    margin: 0 auto; /* Centers the container */
    padding: 20px;
    gap: 20px; /* Adds spacing between images */
}

.albumItem11 {
    flex: 1; /* Makes all items take equal space */
    max-width: 30%; /* Ensures three images per row */
    text-align: center;
}

.albumImage11 {
    width: 100%; /* Makes images responsive */
    height: auto; /* Maintains aspect ratio */
    border-radius: 10px; /* Optional rounded corners */
    object-fit: cover;
}

.imageDescription11 {
    margin-top: 8px;
    font-size: 14px;
    color: #bbb;
}

/* Style the unordered list inside the nav */
nav ul {
    display: flex; /* Makes items sit next to each other */
    list-style-type: none; /* Removes bullet points */
    justify-content: center; /* Centers the items */
    align-items: center; /* Aligns items vertically */
    gap: 20px; /* Adds spacing between items */
    
}

/* Style the links inside the navbar */
nav a {
    text-decoration: none; /* Removes underline */
    color: #000000;
    font-size: 1rem; /* Adjust font size */
    padding: 8px 15px; /* Adds spacing around links */
    border-radius: 5px; /* Rounds link corners */
    transition: background-color 0.3s ease; /* Smooth hover effect */
    vertical-align: middle;
}

/* Hover effect for links */
nav a:hover {
    color: #006837;
    text-decoration: underline;
}

/* Style the logout button form */
nav form {
    display: inline; /* Keeps the button inline with links */
}

nav form button {
    background-color: #ff4d4d; /* Red logout button */
    color: rgba(0, 0, 0, 0.233); /* Text color */
    border: none; /* Removes border */
    padding: 8px 15px; /* Button padding */
    border-radius: 5px; /* Rounds button corners */
    cursor: pointer; /* Changes cursor to pointer */
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

/* Hover effect for logout button */
nav form button:hover {
    background-color: #ff3333; /* Darker red on hover */
}

/* Add spacing for the rest of the page content */
body {
    background-color: #fffefe;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Footer styling */
footer {
    text-align: center;
    padding: 1vh;
    background-color: #0000004f;
    color: #006837;
    font-family: 'Space Grotesk', sans-serif;

    font-weight: 600;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 0.9rem;
}
/*
body::before {
    content: "";
    position: fixed; /* Stays fixed in the background */
    /*top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Places it behind all content */
   /* background-size: cover; /* Ensures the image covers the entire area */
   /* background-position: center; /* Centers the images */
   /** animation: slideshow 20s infinite; /* Runs the slideshow animation */
/*}
*/
.album-container {
    position: relative;
    display: inline-block;
    width: 300px;  /* Set a fixed width */
}

.year-link {
    display: block;
    text-decoration: none;
}

.albumImage {
    display: block;
    width: 100%; /* Ensures the image takes full width */
    height: auto; /* Keeps aspect ratio */
    border-radius: 8px;
}

.year-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 20px;
    color: white;
    font-weight: bold;
    font-family: 'Space Grotesk', sans-serif;

    white-space: nowrap;
}

/* GRID */
/* GRID */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolumner */
    grid-template-rows: repeat(3, 300px); /* 3 rader med 300px höjd */
    gap: 20px;
    max-height: calc(3 * 300px + 2 * 20px); /* höjd för 3 rader + gaps */
    overflow: hidden; /* Klipp allt utanför */
    margin: auto;
    background: #ffffff;
    color: #1b1515;
    padding: 20px;
    box-sizing: border-box;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    padding: 5px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.grid-item img {
    width: 100%;  /* Bilden tar hela bredden */
    height: 100%; /* Bilden tar hela höjden */
    object-fit: cover; /* Bilden beskärs snyggt */
    border-radius: 5px;
    transition: transform 0.4s ease-out;
    display: block;
    color: rgba(0, 0, 0, 0.815);
}

.grid-item:hover {
    transform: scale(1.05); /* Slight zoom effect */
}

.grid-item p {
    margin-top: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

/*VIDEO*/
#bg-video-container {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: relative; /* Ensures it stays in normal document flow */
    z-index: auto; /* Same as posts */
    object-fit: cover;
    background:rgba(0, 0, 0, 0.815);
}

#bg-video {
    width: 100vw;
    height: 100vh;
    display: block;
    object-fit: cover; 
    object-position: center center
}
 
#video-section {
    object-fit: cover;
    width: 100%;
    height: 100vh; /* Fullscreen height */
    position: relative; /* Keeps it in flow */
    overflow: hidden;
}
#content {
    position: relative;
    z-index: auto;
    text-align: center;
    background:rgba(255, 255, 255, 0.815); /* Ensures it has a clear background */
}
/* Inlägg */


h1 {
    width: 100%;
    margin-top: 10vh;
    font-size: 3em;
    align-self: center;
    font-family: 'Space Grotesk', sans-serif;

}

.button {
    background: #ff6600;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.button:hover {
    background: #e65c00;
}

#skapa {
align-self: center;
}

article {
    background: #ffffff;
    /*padding: 20px;*/
    margin: 20px auto;
    width: 100%;
    /*border-radius: 10px;*/
}

.image-container {
    position: relative;
    width: 100%;
}

.postImg {
    width: 100%;
    display: block;
    height: 418px;
}

.postTitle {
    position: absolute;
    bottom: -17px;
    left: 10px;
    margin: 0;
    color: black;
    font-weight: 1000;
    font-family: 'Space Grotesk', sans-serif;

    font-size: 4em;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}



.postText {
    color:rgb(0, 0, 0);
    margin-top: 5vh;
    margin-left: 3vw;
    margin-right: 3vw;
    font-size: 1em;
    font-family: 'Space Grotesk', sans-serif;

    text-align: left;
}

.postImg {
    width: 100%;
    height: 418px; /* or whatever fixed height you want */
    object-fit: cover; /* ensures the image covers the box without distortion */
    display: block;
}

/* Log in*/
.login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    padding-top: 35vh;
    width: 50vw;
}
.input {
    display: flex;
    justify-content: center;
    margin: 1vh;

}
input {
    height: 5vh;
    width: 60%;
    display: flex;
    align-self: center;
    font-size: 0.9em;
    font-family: 'Space Grotesk', sans-serif;

}
.signInButton {
    align-self: center;
    border-style: none;
    display: inline-block;
    color: #006837;
    background-color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;

    font-size: 1em;
    font-weight: 600;
    margin-top: 2vh;
    width: 60%;
}

/* Skapa Album */
.skapaAlbumForm, .albumTitel, .albumBilder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2vh;
}

.submitTitle {
    font-size: 1.5em;
    align-self: center;
    width: 61%;
    flex-grow: 1;
    font-family: 'Space Grotesk', sans-serif;

}

/* Albumsida */
.albumOverview {
    margin-left: 1vw;
    margin-right: 1vw;
    display: grid; 
    grid-template-columns: repeat(4, 1fr);
    row-gap: 1vw;
    column-gap: 1vw;
    list-style: none;
    margin-bottom: 10vh;
}

.titleForAlbum {
    text-align: left;
    margin: bottom 5px;;
    padding-top: 2vh;
    width: 100%;
}

.albumImage {
    border: none;
    width: 100%;
}

.albumImage:hover {
cursor: pointer;
}

.albumOverview li {
    position: relative; /* Gör det möjligt att positionera bilden i containern */
    overflow: hidden; /* Skär bort innehåll som sticker utanför containern */
    width: 100%; /* Gör containern lika bred som sin kolumn */
    padding-top: 100%; /* Skapar en kvadratisk container baserat på bredd */
}

.albumOverview img {
    position: absolute; /* Placera bilden relativt till containern */
    top: 50%; /* Centrera bilden vertikalt */
    left: 50%; /* Centrera bilden horisontellt */
    transform: translate(-50%, -50%); /* Justera så att bilden centreras exakt */
    width: 100%; /* Låt bilden fylla bredden */
    height: 100%; /* Låt bilden fylla höjden */
    object-fit: cover; /* Croppar bilden så att den alltid fyller containern */
}

/* Lightbox för att bläddra bland bilder */
.hidden {
    display: none !important; /* Gömmer lightbox som standard */
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Mörk bakgrund */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px; /* space between arrows and image */
  }

#lightbox-image {
    max-width: 90vw;    /* fits within viewport */
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
  }


.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;

}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

@media screen and (max-width: 500px) {    
    h1 {
        margin-top: 8vh;
        font-size: 2em;
    }
    
    .button {
        align-self: center;
        border-style: none;
        display: inline-block;
        background-color: #000000;
        color: #ffffff;
        font-family: 'Space Grotesk', sans-serif;

        padding: 1vw;
        margin-bottom: 2vh;
    }
    
    article {
        margin-bottom: 5vh;
        padding-bottom: 4%;
        width: 80%;
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: center;
    }

    .title-container {
        flex-direction: column;
    }
    
    .postTitle {
        font-size: 3em;
        text-align: center;
        flex-grow: 1;
        font-family: 'Space Grotesk', sans-serif;

    }
    
    .postText {
        margin-top: 3vh;
        margin-left: 4vw;
        margin-right: 4vw;
        font-size: 0.8em;
        font-family: 'Space Grotesk', sans-serif;
    }
    
    .postImg {
        width: 100%;
        height: 418px;
        border: none;
        padding: 0;
    }

    .login {
        width: 100vw;
    }

    .signInButton {
        padding: 1vw;
    }

    input {
        font-size: 1em;
    }
    
}
/* Pagination Container */

.pagination {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  font-family: 'Space Grotesk', sans-serif;
}

.pagination a {
  background-color: #f0f0f0;
  color: #006e4c;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid #006e4c;
  transition: all 0.3s ease;
  font-weight: 600;
}

.pagination a:hover:not(.disabled) {
  background-color: #006e4c;
  color: white;
  border-color: #004d36;
}

.pagination a.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

.contact-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Space Grotesk', sans-serif;

    color: #222;
  }
  
  .contact-container h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    text-align: center;
  }
  
  .contact-container h2 {
    font-size: 1.2em;
    margin-bottom: 2em;
    text-align: center;
    color: #555;
  }
  
  .contact-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 6px solid #006837;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }
  
  .contact-card p {
    margin: 10px 0;
    font-size: 1.05em;
  }
  
  .contact-card a {
    color: #006837;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .contact-card a:hover {
    color: #006837;
  }
  /* Hamburger hidden by default */
.nav-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
  }
  
  /* Mobile styles */
  @media (max-width: 768px) {
    nav {
      height: 60px;
      position: fixed;
      width: 100%;
      top: 0;
      left: 0;
      background-color: white;
      border-bottom: 1px solid #ddd;
      padding: 0 20px;
      display: flex;
      align-items: center;
      z-index: 1100;
    }
  
    .nav-toggle {
      display: block;
      position: absolute;
      top: 0px;
      right: 40px;
      font-size: 2rem;
      cursor: pointer;
      z-index: 1150;
      color: rgb(0, 0, 0);
    }
  
    .nav-left {
      position: static;
      width: 100%;
      text-align: center;
      padding: 10px 0;
    }
  
    .nav-img {
      display: block;
      position: absolute;
      top: 20px;
      width: 150px;
    }
  
    .nav-right {
        display: none;
        flex-direction: column;
        background-color: white;
        position: absolute;    /* Absolut för att placera direkt under nav */
        top: 78px;              /* Under fixed navbar */
        left: 0;
        right: 0;
        width: 100vw;           /* Viktigt: full viewport-bredd */
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: max-height 0.3s ease-in-out;
        overflow: hidden;
        max-height: 0;
        z-index: 1050;
      }
      
      .nav-right.nav-active {
        display: flex;
        max-height: 500px;
      }
  
  
  
    .nav-right li {
      margin: 10px 0;
      text-align: center;
    }
  
    .nav-right li a {
      display: block;
      width: 100%;
      padding: 12px;
      text-align: center;
      color: #333;
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 400;
      text-decoration: none;
      transition: background-color 0.2s ease, color 0.2s ease;
      box-sizing: border-box;
    }
  
    .dropdown-content {
      position: absolute;
      top: 0;
      left: 100%; /* Flytta till höger om förälder */
      background-color: white;
      min-width: 200px;
      display: none;
      flex-direction: column;
      box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
      z-index: 1000;
    }
  
    .dropdown-content.show-dropdown {
      display: flex;
      top: -7px;
      left: 100%;
    }
  
    .dropdown .dropbtn::after {
      content: " ▼";
      font-size: 0.7em;
    }
  
    /* Justera innehållet nedanför navbaren */
    main, .content, .page-container {
      margin-top: 60px;
      width: 100%;
      gap: 10px;
    }
  
    /* Bild och titel */
    .postImg {
      width: 100%;
      display: block;
      height: 200px;
      gap: 100px;
    }
  
    .postTitle {
      position: absolute;
      bottom: -8px;
      left: 10px;
      margin: 0;
      color: black;
      font-weight: 1000;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 2em;
    }
    .grid-container {
        grid-template-columns: repeat(3, 1fr);  /* tre kolumner även på mobil */
        grid-template-rows: auto;                /* raderna anpassar höjd */
        gap: 10px;                              /* eventuellt mindre gap */
        max-height: 100%;
        width: 100%;
        height: 100%;                       /* ta bort max-height */
        padding: 0px;
      }
    
      .grid-item img {
        width: 100%;
        height: auto;           /* 🔥 Viktigt för att behålla bildens proportioner */
        display: block;
        object-fit: cover;      /* eller `contain` om du inte vill att något beskärs */
      }
      .image-container {
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
      }
    article, .image-container, .grid-item, a {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        width: 100%;
      }
      #content article {
        margin-bottom: 10px;
         /* eller 32px om du vill ha ännu mer luft */
      }
      
      body {
        margin: 0;
        padding: 0;
      }
  }

  /* Dropdown container */
/* Dropdown container */
.dropdown {
    position: relative;
  }
  
  /* Dropdown main link */
  .dropbtn {
    display: inline-block;
    padding: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Dropdown menu list */
  .dropdown-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 100%; /* Just below the button */
    left: 0;
    background-color: #fff;
    min-width: 180px;
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  /* Show dropdown on hover */
  .dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  /* Dropdown links */
  .dropdown-content li {
    list-style: none;
    width: 100%;
  }
  
  .dropdown-content li a {
    display: block;
    width: 100%;
    padding: 12px 16px 12px -60px; /* ökar vänster-padding till 32px */
    text-align: left;
    color: #333;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
  }
  
  /* Hover effect on dropdown links */
  .dropdown-content li a:hover {
    background-color: #f4f4f4;
    color: #000;
  }


  .sortable-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 2px;
    margin-top: 10px;
  }
  
  .preview-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    cursor: move;
    border: 1px solid #aaa;
    border-radius: 6px;
  }

  .dropdown-content {
    display: none;
    left: left;
  }
  
  .dropdown-content.show-dropdown {
    display: block;
    text-align: left;
  }


  .guestblock-header {
    margin-top: 60px;
    font-family: 'Space Grotesk', sans-serif;
    text-align: left;
    margin-bottom: 2rem;
  }
  
  .guestblock-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111;
    width: 100%;
    text-align: left;
  }
  
  .guestblock-banner {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
    text-align: left;
  }
  
  .guestblock-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .guestblock-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
  }
  
  .guestblock-column {
    flex: 1 1 45%;
    max-width: 500px;
    text-align: left;
  }
  
  .guestblock-column img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
  }
  
  .guestblock-column p {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
  }

  .container {
    max-width: 700px;
    margin: auto;
    background-color: #fff;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  h1 {
    font-size: 2.4rem;
    color: #000000;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
  }

  .highlight {
    font-weight: bold;
    color: #006e4c;
  }

  .swish-box {
    background-color: #e9fcef;
    padding: 1.5rem;
    border-left: 6px solid #00a862;
    border-radius: 8px;
    margin-top: 2rem;
  }

  .swish-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #006e4c;
  }

  .preserve-whitespace {
    white-space: pre-wrap; /* Behåll radbrytningar och tabb */
}