body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
.container {
	display: flex;
	align-items: center;
	padding: 20px 0 20px 40px;
	flex-wrap: wrap;
}
header {
	flex: 1;
}
.rotate {
	max-width: 3.5rem;
	transition: transform 0.5s ease;
}
header:hover .rotate {
	transform: scale(1.1) rotate(360deg);
}
header img {
	max-width: 7.5rem;
}
header img.name {
	position: relative;
	left: -10px;
	bottom: 7px;
}
nav {
	display: flex;
	justify-content: space-around;
	flex: 4.5;
	border-bottom: 6px solid;
	border-image: linear-gradient(to right, #522697, #df4c2b, #3c7991, #522697, #3c6db1, #88cad1, #30587c, #ec963a, #522697, #df4c2b, #3c7991, #88cad1, #3c6db1, #522697, #30587c, #ec963a, #522697, #df4c2b, #3c7991, #4c85c7, #3c6db1, #532599, #3c7991, #4c86c6, #522697, #df4c2b, #3c7991, #f1d345, #3c6db1, #522697, #f36d31, #522697) 1;
}
nav a {
	color: #041E83;
	padding: 10px 20px;
	text-decoration: none;
	text-align: center;
	font-size: large;
	transition: color 0.3s ease;

}
nav a:hover, nav a.active {
	color: #e26f49;
}
.about-panel, .contact-panel {
  position: fixed;
  top: 68px;
  right: 0;
  width: 21%;
  height: 92vh;
  background-color: #413d97;
  color: white;
  padding: 0 35px;
  transform: translateX(100%);
  transition: transform 0.5s ease;
  z-index: 10;
  line-height: 1.4;
}

/* When panel is active */
.about-panel.active, .contact-panel.active {
  transform: translateX(0);
}
.mobile-links {
  display: none;
  text-align: center;
  padding: 1rem;
  background-color: #f9f9f9;
}
.mobile-links a {
  display: inline-block;
  margin: 0 1rem;
  font-size: 1.1rem;
  color: #041E83;
  text-decoration: underline;
}

.grid-container {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
}
.grid-item {
	position: relative;
	background-color: inherit;
	display: block;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
}
.grid-item img {
	width: 100%;
}
.overlay {
	position: absolute;
	top: 0;
	left: 100%;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.80);
	background-color: rgb(79 75 158 / 90%);
	display: flex;
	align-items: center;
	justify-content: center;
	transform-origin: left;
	visibility: hidden; /* Hide the overlay initially */
	transition: left 0.5s; /* Ensure smooth transition */
}
@keyframes enterAnimation {
	0% {
		left: 100%;
	}
	100% {
		left: 0;
	}
}
@keyframes exitAnimation {
	0% {
		left: 0;
	}
	100% {
		left: -100%;
	}
}
.grid-item .overlay span {
	color: white;
	font-size: 20px;
	font-weight: bold;
	text-align: center;
}
.grid-item::before {
	content: "";
	display: block;
	padding-top: 100%;
}
.grid-item > div {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal {
	display: none;
	position: fixed;
	z-index: 1;
	padding-top: 60px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(86, 86, 86);
}
.modal-content {
	/*position: relative;*/
	margin: auto;
	display: block;
	width: 60%;
	max-width: 100%;
}
.modal-content .zippo-slide {
	max-width: 550px;
	padding-left: calc(22% + 1vw);
}
.mySlides1, .mySlides2, .mySlides3 {
	display: none;
	width: 100%;
}
video {
    width: 100%;
}
.caption {
    text-align: center;
    color: #fff;
    font-size: 16px;
    padding: 10px 0;
}
.close {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #fff;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
}
.close:hover, .close:focus {
	color: rgba(0, 0, 0, 0.4);
	text-decoration: none;
	cursor: pointer;
	transform: scale(1.1) rotate(360deg);
}
.about-panel .close, .contact-panel .close {
	top: 0;
	right: 14px;
}
.about-panel .close:hover, .contact-panel .close:hover {
	color: rgba(255, 255, 255, 0.4);
}
.prev, .next {
	cursor: pointer;
	position: absolute;
	top: 40%;
	width: auto;
	padding: 16px;
	color: white;
	font-weight: bold;
	font-size: 25px;
	transition: 0.6s ease;
	border-radius: 0 3px 3px 0;
	user-select: none;
}
.next {
	right: 0;
	border-radius: 3px 0 0 3px;
}
.prev {
	left: 0;
}
.prev:hover, .next:hover {
	background-color: rgba(0, 0, 0, 0.4);
}
@media screen and (max-width: 800px) {
	.container {
		flex-direction: column;
		align-items: center;
		padding: 20px 0;
	}
	nav {
		flex-direction: column;
		width: 100%;
		display: none;
	}
	nav a {
		padding: 10px;
		text-align: left;
		font-size: 18px; /* Larger font size for smaller screens */
	}
	.grid-container {
		grid-template-columns: repeat(2, 1fr);
	}
	.grid-item {
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.grid-item > div {
		top: inherit;
	}
	.grid-item .overlay {
		display: flex;
		align-items: left;
		justify-content: flex-start;
		height: 55px;
      bottom: 25px; /* Align the overlay at the bottom */
      left: 0 !important; /* Ensure the overlay is always visible */
      transition: none !important; /* Disable smooth transition */
      animation: none !important; /* Disable animation */
      visibility: visible !important; /* Ensure visibility */
		margin-left: 2rem;
      border-radius: 30px 30px;
      padding-left: 2rem;
		background-color: rgba(0,0,0,0.80);
    }

    /* Remove hover effects */
    .grid-item:hover .overlay, .grid-item:active .overlay {
        left: 0 !important; /* Ensure overlay stays visible */
        animation: none !important; /* Disable animation */
    }
	.modal-content .zippo-slide {
		padding-left: 0;
	}
  .about-panel, .contact-panel {
    position: fixed;
	  right: unset;
	  left: 0;
	  top: 0;
	  width: 100%;
    height: 100vh;
	  z-index: 50;
    padding: 2rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.6;
  }
  .about-panel.active, .contact-panel.active {
    transform: translateY(0);
	  z-index: 100;
  }
  .about-panel .close, .contact-panel .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    z-index: 20;
  }
  .about-panel h3, .contact-panel h3 {
    font-size: 1.5rem;
    margin-top: 3rem;
  }
  iframe {
    height: 80vh;
    width: 100%;
  }
  .mobile-links {
    display: block;
  }	
}
@media screen and (max-width: 500px) {
	.grid-container {
		grid-template-columns: 1fr;
	}
	.modal-content {
		 width: 100%;
	}
	.prev, .next {
		top: unset;
		bottom: 25%;
	}
}
@media screen and (min-width: 800px) {
	.prev, .next {
		font-size: 38px;
	}
	.close {
		font-size: 55px;
	}
	.about-panel .close, .contact-panel .close {
		font-size: 40px;
	}
	.modal {
		background-color: rgba(86, 86, 86, .9);
	}
}