* {
  box-sizing: border-box;
  background-color: silver;
  font-family: noto sans;
}

h1 {
	font-size: 2em;
	font-weight: bold;
	text-align: right;
	margin-top: 0.67em;
	margin-bottom: 0.67em;
	margin-left: 0;
	margin-right: 0;
  }

h3 {
	font-size: 1.17em;
	font-weight: bold;
	text-align: center;
	margin-top: 1em;
	margin-bottom: 1em;
	margin-left: 0;
	margin-right: 0;
}

h4 {
	font-size: 1em;
	font-weight: normal;
	text-align: center;
	margin-top: 1em;
	margin-bottom: 1em;
	margin-left: 0;
	margin-right: 0;
}

p {
text-align: justify;
margin: 10px 10px 10px 10px;
}

a:link
{
background: none transparent scroll repeat 0% 0%;
text-decoration: none;
color: black;
}

a:active
{
background: none transparent scroll repeat 0% 0%;
text-decoration: none;
color: #8338ec;
}

a:visited
{
background: none transparent scroll repeat 0% 0%;
text-decoration: none;
color: black;
}

a:hover
{
background: none transparent scroll repeat 0% 0%;
text-decoration: none;
color: #8338ec;
}

.fp_center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 900px;
  max-width: 100%;
  height: auto;
}

.ab_center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 600px;
  max-width: 100%;
  height: auto;
}

#titlebar {
	border: 1px solid black;
	padding-right: 5px;  
	margin-right: 1%;
	margin-left: 1%;
  }

#menubar {
padding: 5px;
text-align: center;
}

#main {
width: 96%;
margin-left: 2%;
margin-right: 2%;
padding-top: 10px;
}

/* The gallery landing style */

div.landinggallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

div.landinggallery-item {
  margin: 5px;
  border: 1px solid black;
  width: calc(25% - 20px);
  height: auto;
}

div.landinggallery-item:hover {
  border: 1px solid #8338ec;
}

div.landinggallery-item img {
  width: 100%;
  height: auto;
}

div.landinggallery-item div.desc {
  padding: 15px;
  text-align: center;
}

/* The actual gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 0 15px;
}

.gallery-item {
  position: relative;
  width: calc(25% - 20px);
  height: auto;
  margin: 10px;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.gallery-item:hover {
  transform: scale(1.1);
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 46, 46, 0.9);
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

/* Modal content (image) */
.modal-content {
  position: relative;
  width: 100%;
  height: auto;
  max-width: 1248px;
  max-height: 832px;
  border-radius: 5px;
  overflow: hidden;
  animation: zoomIn 0.5s;
}

@keyframes zoomIn {
  from {transform: scale(0.6);}
  to {transform: scale(1);}
}

.modal.show {
  display: flex;
  opacity: 1;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #8338ec;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

/* Caption of modal image */
.caption {
  position: absolute;
  bottom: 0px;
  width: 100%;
  text-align: center;
  color: #8338ec;
  font-size: 20px;
}

@media screen and (max-width: 768px) {
  .gallery-item {
    width: calc(50% - 20px);
  }
}

@media screen and (max-width: 480px) {
  .gallery-item {
    width: calc(100% - 20px);
  }
}