/* style.css */
body {
  font-family: 'Georgia', serif;
  margin: 0;
  background-color: #ebebeb;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #ebebeb;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid #5c1a1b;
}

.header-container {
  display: flex;
  justify-content: space-between; /* logga till vänster, ikoner till höger */
  align-items: center;            /* vertikalt centrerade */
}

.header-container .logo {
  height: 80px; /* loggans höjd */
}

.header-icons {
  display: flex;
  align-items: center; /* vertikal centrering */
  gap: 1rem;           /* avstånd mellan ikonerna */
}

.header-icons .icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.3s;
}

.header-icons .icon:hover {
  transform: scale(1.1);
}

.header-icons .qr {
  width: 80px;
  height: auto;
}

nav {
  background-color: #7a2b2c;
  display: flex;
  justify-content: center;
}

nav a {
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background-color 0.3s, transform 0.2s;
}

nav a:hover {
  background-color: #a84445;
  transform: scale(1.05);
}

nav a.active {
  background-color: #a84445;
  transform: scale(1.05);
}

.container {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.text {
  font-size: 1.2rem;	
  max-width: 800px;
  color: #333;
  line-height: 1.2;
}

#aktuellt-container {
  overflow-y: visible;
  max-width: 800px;      /* styr hur brett innehållet får bli */
  margin: 10px auto;     /* centrerar horisontellt */
  padding: 0 20px;       /* luft mot kanterna på små skärmar */
}

.aktuellt-post {
    border-bottom: 1px solid #ccc;
    padding: 30px 40px;
    margin-bottom: 40px; /* avstånd mellan poster */
    background-color: #ffffff;	
}

.post-header {
    display: flex;
    flex-direction: column; /* staplar h2 och span */
    align-items: flex-start;	
	font-size: 1.6rem;
	color: #333;
}

.post-header h2 {
    margin: 0;        /* tar bort default margin */
    font-size: 1.4em;
}

.post-datum {
    margin: 3px 0 0 0; /* liten luft ovanför datumet */
    font-size: 0.9em;
    color: #444;
	margin-bottom: 20px;
}

.post-bild {
    max-width: 100%;   /* bilden får högst 100% av containerbredden */
    display: block;   /* behövs för margin auto på inline-element */
    margin: 15px auto 20px auto; /* 15px över, 40px under, auto horisontellt */
    border-radius: 4px;
}

.post-beskrivning {
	font-size: 1.2rem;
	color: #333;
    margin: 5px 0;
    margin-bottom: 30px; /* avstånd mellan poster */
    line-height: 1.2;
}

.post-extra {
    font-style: italic;   /* tillbaka till italic */
    color: #444;          /* lite mörkare grå */
    margin: 10px 0;       /* behåller luft ovan och under */
    font-family: "Georgia", serif; /* finare font för extratext */
}

.post-plats div,
.post-plats a {
    margin-bottom: 2px;
}

.maps-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #7a1f1f;
    text-decoration: none;
}

.maps-link:hover {
    text-decoration: underline;
}

#galleri-container {
  overflow-y: visible;
  max-width: 900px;      /* styr hur brett innehållet får bli */
  margin: 0px auto;     /* centrerar horisontellt */
  padding: 0 0px;       /* luft mot kanterna på små skärmar */
}

.galleri-post {
    background-color: #ebebeb;	
    padding: 0px 0px;
}

.galleri-header {
	font-size: 1.6rem;
	color: #333;
	text-align: center;
}

.galleri-header h2 {
    font-size: 1.4em;
	margin-bottom: 30px;
}

.galleri-text_upper {
	font-size: 1.2rem;
	color: #333;
	text-align: center;
    margin: 5px 0;
    margin-bottom: 10px;
    line-height: 1.2;
}

.galleri-bild {
    max-width: 100%;   /* bilden får högst 100% av containerbredden */
    display: block;   /* behövs för margin auto på inline-element */
    border-radius: 0px;
	align-items: center;
}

.galleri-text_lower {
    font-style: italic;   /* tillbaka till italic */
    font-size: 1.2rem;
    color: #444;          /* lite mörkare grå */
	text-align: center;
    font-family: "Georgia", serif; /* finare font för undertext */
	margin-top: 10px;
}

.galleri-sortering {
	display: none;
}

.galleri-bottomspace {
    padding: 30px 0px;
}


