* {
	margin: 0;
	margin-block: 0;
	margin-inline: 0;
	padding: 0;
	-moz-box-sizing: border-box; 
  	-webkit-box-sizing: border-box; 
  	box-sizing: border-box; 
}

html {
	scroll-behavior: smooth;
}
body {
	display: flex;
	flex-direction: column;
	margin: 0; 
	padding: 0;
	font-family: articulat-cf, sans-serif;
	font-weight: 500;
	background-color: black;
	color: rgba(245, 245, 245, 0.75);
  text-shadow: 0 0 6px rgba(255, 140, 100, 0.4),
               0 0 12px rgba(200, 90, 120, 0.3);
}
html, body {
  height: 100%;
}
p, address {
	font-size: 1rem;
  line-height: 1.35rem;
}
h1, h2, h3, .menu {
	font-size: 1.6rem;
	font-weight: normal;
	letter-spacing: 0.02em;
}
h4{
	font-size: 0.85em;
}
h5, small {
	font-size: 0.75rem;
	line-height: 0.95rem;
	font-weight: normal;
}
h6 {
	font-size: 0.65rem;
	line-height: 1rem;
	font-weight: normal;
}
address, address a:link {
	font-style: normal;
}
address {
	padding-bottom: 1.2rem;
}
.gloomy-type {
  color: rgba(245, 245, 245, 0.75);
  text-shadow: 0 0 6px rgba(255, 140, 100, 0.4),
               0 0 12px rgba(200, 90, 120, 0.3);
}
.shadow-type {
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.line-break-after {
      padding-bottom: 0.75rem;
      display: block;
    }
a:link, a:visited { /* lenker */
    color: blue; text-decoration: none; cursor: pointer;
    }
header a:link, header a:visited, .textbox a:link, .textbox a:visited, .hidden-link a:visited, .hidden-link a:link { /* lenker/hovedmeny */
	color: rgba(245, 245, 245, 0.75);
}
a:hover, .textframe a:hover, .hidden-link a:hover { /* mus over lenke */
    opacity: 1;
  text-shadow: 
  0 0 8px rgba(225, 120, 100, 0.7),
  0 0 14px rgba(225, 120, 100, 0.6),
  0 0 25px rgba(200, 90, 120, 0.5),
  0 0 40px rgba(200, 90, 120, 0.4); 
  text-decoration: none;
}
header { /* Sidetittel og meny */
	position: relative; /* viktig for posisjonering av meny */
	width: 100%;
	height: 50px;
	padding: 1rem 1.35rem 1.1rem;
	position: -webkit-sticky; 
	position: fixed;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	font-size: 1.15rem;
	z-index: +3;
  justify-content: space-between;
  align-items: center;
}
.navbar-brand { /* Sidetittel */
	width: auto;
	-webkit-box-flex: 1;
	    -ms-flex: 1;
	        flex: 1;
}
.navbar-brand a {
	cursor: pointer;
}
nav { /* Meny */
	float: right;
	display: block;
	width: auto;
	cursor:default;
}
nav ul {
	display: none;              /* hidden by default */
  position: absolute;
  top: 42px;                  /* below header */
  right: 0;                   /* align to right corner */
  left: 1.4rem;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  border-radius: 6px;
}
/* Stack items vertically */
nav ul.menu li {
  margin: 0;
}
/* Links */
nav ul.menu li a {
  display: block;
  text-decoration: none
}
/* Hover effect */
nav ul.menu li a:hover {
  opacity: 1;
  text-shadow: 
  0 0 8px rgba(255, 140, 100, 0.7),
  0 0 14px rgba(255, 140, 100, 0.6),
  0 0 25px rgba(200, 90, 120, 0.5),
  0 0 40px rgba(200, 90, 120, 0.4);
}
nav ul li {
	list-style: none;
}
.hamburger {
  cursor: pointer;
  float: right;
  width: 26px;
  height: 36px; /*juster denne for store skjermer*/
  position: relative;
	padding: 5px;
	top:  10px;
	right: 0px;
}
.hamburger span {
  position: absolute;
  height: 2px;
  width: 26px;
  background: rgba(245, 245, 245, 0.75);
  left: 0;
  transition: all 0.3s ease;
  border-radius: 1px;
  box-shadow: 
    0 0 6px rgba(255, 140, 100, 0.4),
    0 0 12px rgba(200, 90, 120, 0.3);
}
.hamburger:hover span {
	opacity: 1;
  box-shadow: 
  0 0 8px rgba(255, 140, 100, 0.7),
  0 0 14px rgba(255, 140, 100, 0.6),
  0 0 25px rgba(200, 90, 120, 0.5),
  0 0 40px rgba(200, 90, 120, 0.4); 
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}
.menu {
  display: none;
}
.menu.active {
  display: block;
}
main{
	flex: 1;
}
.flex-container { /* Sidebeholder */
  padding-top: 100px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
}
.no-drag img {	
	-moz-user-select: none;
 	-webkit-user-select: none;
 	-ms-user-select: none;
 	user-select: none;
	pointer-events: none;
	-webkit-user-drag: none;
  	-khtml-user-drag: none;
  	-moz-user-drag: none;
  	-o-user-drag: none;
  	-webkit-touch-callout: none;
}
#bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* makes it behave like a background */
  z-index: -1;
}
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* makes it behave like background-size: cover */
  z-index: -1; /* send it behind content */
}
.sound-btn {
	font-family: articulat-cf, sans-serif; 
	font-size: 2.3rem;
	line-height: 2.3rem;
  position: fixed;
  bottom: 70px;
  left: 20px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: none;
  outline: none;
  background: #39FF14;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}
.sound-btn:hover {
  transform: scale(1.1);
}
.sound-btn:active {
  transform: scale(0.95);
}
.page {
	display: block;
}
.page-content{
	display: flex;
    justify-content: center;
}
.frame { /* universell marg */
	margin: 0.6rem;
	margin-top: 0rem;
}
.textbox { /* prosjektbeskrivelse */
	display: block;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
	padding-bottom: 1.5rem;
	max-width: 580px;
	text-shadow: black;
}
.textbox-archive { /* prosjektbeskrivelse */
	display: block;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
	padding-bottom: 1.5rem;
	max-width: 100%;
	text-shadow: black;
}
.section-title {
      margin-bottom: 2rem;
    }
.section-title h2 {
  line-height: 1.4rem;
  padding-bottom: 2rem;
}
.section-title-padding {
	padding-top: 2rem;
}
.year-block {
	display: flex;
	gap: 1rem;
	margin-bottom: 0.5rem;
}
.year-block ul li {
list-style: none;
}

.year-block-padding {
	padding-bottom: 3rem;
}
.year {
	min-width: 60px;
	font-size: 1rem;
	line-height: 1.4rem;
}

.year ul {
	margin: 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.4rem;
}

.year li {
	margin: 0;
	list-style: none;
}

/* bildegalleri */
.gallery {
  max-width: 900px;
  padding: 1.2rem 0.7rem;

  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* 🔥 forces left alignment */
  align-items: flex-start;
  gap: 7px;
}
 .img {
    display: block;
  }

  .img img {
    width: 100%;     /* 🔥 full width on mobile */
    height: auto;    /* keep proportions */
    box-shadow: 0 0 2px green;
  }



.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

.lightbox-inner {
  display: flex;
  justify-content: center;
  align-items: center;

  max-width: 90vw;
  max-height: 80vh;
}

#lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.close {
  position: absolute;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  font-weight: normal;
  color: rgba(245, 245, 245, 0.75);

  text-shadow: 0 0 6px rgba(255, 140, 100, 0.4),
               0 0 12px rgba(200, 90, 120, 0.3);
}

.prev, .next {
	 position: absolute;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: normal;
  color: rgba(245, 245, 245, 0.75);

  text-shadow: 0 0 6px rgba(255, 140, 100, 0.4),
               0 0 12px rgba(200, 90, 120, 0.3);
	}

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

/* caption */
#lightbox-caption {
  position: absolute;
  bottom: 20px;

  text-align: center;
  max-width: 80%;

  font-size: 0.85rem;
  line-height: 1.1rem;

  font-weight: normal;
  color: rgba(245, 245, 245, 0.75);

  text-shadow: 0 0 6px rgba(255, 140, 100, 0.4),
               0 0 12px rgba(200, 90, 120, 0.3);
}
footer {
	position: static;
	flex: 0 0 5vh;
	display: flex;
	flex-direction: column;
	padding-top: 0rem;
	padding-bottom: 1rem;
	padding-left: 1rem;
	padding-right: 1rem;
	color: white;
	width: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	z-index: +3;
	font-size: 0.75rem;
	line-height: 0.9rem;
	font-weight: normal;
}
.footer-left, .footer-right { /* Innhold: kontakt */

	text-align: center;
}
.footer-right{
	align-items: flex-start; /* or stretch */
	padding-top: 0.6rem;
	}

@media (min-width: 760px) {
	header {
		padding: 1rem 2rem 1rem;
	}
	nav {
		display: block;
	}
	nav ul {
	left: 2rem;
	}
  .sound-btn {
	font-family: articulat-cf, sans-serif; 
	font-size: 1.7rem;
	line-height: 1.7rem;
  position: fixed;
  bottom: 45px;
  left: 20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
}
.img {
  flex: 0 0 auto;   /* prevents flex stretching */
  margin: 0;
}

.img img {
  height: 130px;    /* fixed height */
  width: auto;      /* natural width */
  display: block;
  flex-shrink: 0;   /* 🔥 prevents squeezing inside flex */
}

	footer {
		flex-direction: row; 
		color: white;
		padding-left: 0rem;
	padding-right: 0rem;
	}
	.footer-left, .footer-right {
		flex: 0 1 50vw;
		flex: 1;
		margin: 0rem 2rem 0rem;
	}

	.footer-left {
			text-align: left;
  flex: 1; /* remaining space */
  margin: 0rem 2rem 0rem;
  align-self: flex-end;

}

.footer-right {
			float: right;
		text-align: right;
  flex: 0 0 155px; /* fixed width */
  margin: 0rem 2rem 0rem;
  padding-top: 0rem;
  	align-self: flex-end;
}
	.frame { /* universell marg */
	margin: 1.2rem;
	margin-top: 0rem;
}
	}
