/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

header {
display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 20px;
  z-index: 1;
  transition: top 0.3s;
}

header.hide {
  top: -100px;
}

.logo {
display: flex;
align-items: center;
}

.logo a{ 
	color: #000000;
	text-decoration: none;
	font-size: 32px;
	float: left;
	opacity: .8;
	z-index: 2;
	cursor: pointer;
	transition: all .4s ease;
	padding: 4px;
	border: 5px solid #151515;
	animation: glitch-middle 3s infinite;
}

.logo a:hover{
	opacity: 1;
	cursor: cell;
}

@keyframes glitch-middle {
0%,26%,30%,72%,76%,100% { 
	transform: translate(0em,0em) skew(0deg) ; box-shadow: none }
30%,70% {	
	transform: translate(0em,0em) skew(30deg);}
29%,31%,69%,71% {
	transform: translate(0em,0em) skew(0deg);}
28%,74% { 
	box-shadow: 
		-0.2em 0.1em 0 0 cyan,
		0.2em -0.1em 0 0 magenta
}
}

nav ul {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	float: right;
}

nav ul li {
  display: inline-block;
  margin-left: 30px;
  
}

nav ul li a {
	text-decoration: none;
	color: #333333;
	cursor: cell;
}

section {
	text-align: center;
}

section h2 {
	margin-bottom: 20px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
}

.gallery img {
  width: calc(33.33% - 20px);
  margin: 0;
  transition: opacity 0.3s;
  min-height: 200px;
  background: #f5f5f5;
  opacity: 0;
}

.gallery img.loaded {
  opacity: 1;
}

.gallery img:hover {
  opacity: 0.6;
  cursor: cell;
}

.gallery img::after {
  content: attr(alt);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  padding: 5px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery img:hover::after {
  opacity: 1;
}

.gallery img.active {
  transform: scale(1.2);
  z-index: 2;
}

.gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
	z-index: 9999;
}

.gallery-overlay.show {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s;
}

.gallery-overlay img {
  max-width: 90%;
  max-height: 70vh;
  margin-bottom: 20px;
	object-fit: contain;
}

.gallery-overlay .description {
  margin-top: 10px;
  text-align: center;
}

.gallery-overlay .prev,
.gallery-overlay .next,
.gallery-overlay .close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
  font-size: 32px;
  color: #000000;
  cursor: pointer;
  padding: 8px;
	z-index: 1;
}

.gallery-overlay .prev {
  left: 10px;
}

.gallery-overlay .next {
  right: 10px;
}


.gallery-overlay .close {
position: absolute;
  top: 25px;
  right: 15px;
}

@media screen and (max-width: 768px) {

	header {
    padding: 18px;
  }
	
  .gallery img {
    width: calc(50% - 20px);
    min-height: 150px;
  }

  .logo {
    margin-right: auto;
  }
	
	.logo a {
    font-size: 26px;
  }

  #mobile-menu {
    display: flex;
    align-items: center;
  }

  .menu-items {
    display: none;
	  color: #000;
	  font-size: 24px;
	  font-weight: bold;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
	  height: 100vh;
    background-color: #fff;
    padding: 20px;
	  padding-top: 100px;
    text-align: center;
    z-index: 9999;
  }

  .menu-items.show {
    display: block;
  }
	
.menu-items li {
    margin-bottom: 20px;
  }



  .burger-menu {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
  }

  .line {
    width: 100%;
    height: 3px;
    background-color: #000;
  }
	
.burger-menu .line {
  transition: transform 0.3s, background-color 0.3s;
}

  .line.middle {
    transform-origin: center;
  }

.burger-menu.animate .line.top {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.animate .line.middle {
  transform: scale(0);
}

.burger-menu.animate .line.bottom {
  transform: translateY(-8px) rotate(-45deg);
}	

}

@media screen and (max-width: 480px) {
	
	.gallery img {
    width: 100%;
    min-height: 200px;
  }
	
		.logo a {
    font-size: 20px;
  }
}