body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.module1, .module3, .module5 {
  padding: 20px;
}

.module2 {
  padding: 6% 10%;
}

@keyframes backgroundMove {
  0% {
    background-position: center;
  }
  25% {
    background-position: left center;
  }
  50% {
    background-position: center bottom;
  }
  75% {
    background-position: right center;
  }
  100% {
    background-position: center;
  }
}

.module1 {
  background-image: url('./img/museum.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

@media screen and (max-width: 800px) {
  .module1 {
    animation: backgroundMove 20s infinite;
  }
}

#logo {
  margin-bottom: 5vh;
}

#logo img {
  width: 40vw;
  height: auto;
}

.social-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 60vw;
}

.social-links img {
  width: calc(60vw / 3 - 20px);
  height: auto;
}

.social-links a {
  margin: 0 10px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.module1 a {
  position: relative;
  z-index: 2;
}

.module1 img {
  margin: 0 10px;
}

#logo {
  margin-bottom: 20px;
}

.module2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.module2 .text {
  width: 40%;
}

.module2 img {
  width: 40%;
  display: block;
  margin: auto;
}

.module3 {
  background-color: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 20vh;
  flex-direction: column;
  text-align: center;
}

.module4 {
  background-color: #ffd036;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 5% 0;
  min-height: 100vh;
}

.module4 .row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}

.module4 img {
  width: 20%;
  margin: 0 10px;
  padding: 10px 0;
  max-width: 300px;
}
@media screen and (max-width: 800px) {
  .social-links {
    flex-direction: column;
    width: 90vw;
  }
  
  .social-links img {
    width: 35vw;
    margin: 10px 0;
  }
  .module2{
    padding: 20px;
    flex-direction: column;
  }
  
  .module2 .text{
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .module2 img{
    width: 80%;
  }
  
  .social-links a {
    margin: 5px 0;
  }
  
  #logo img {
    width: 90vw;
  }
  
  .module4 {
    padding: 20px 0;
    height: auto;
  }
  
  .module4 .row {
    flex-direction: column;
  }
  
  .module4 img {
    width: 80%;
    margin: 5px 0;
  }
}

.module5 {
  background-color: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 15px;
  font-size: 12px;
}

@media screen and (max-width: 800px) {
  
  
  .module4 {
    background-color: #f2bd36;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 5% 0;
    height: auto;
  }
}

.gallery-module {
  padding: 40px 20px;
  background: #fff;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gallery-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item h3 {
  padding: 15px;
  margin: 0;
  font-size: 16px;
  text-align: center;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  margin: 2% auto;
  background: #fff;
  border-radius: 8px;
}

.gallery-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
}

.modal-header {
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  background: #f8f8f8;
  border-radius: 8px 8px 0 0;
}

.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.close-button {
  position: static;
  font-size: 24px;
}

#storyFrame {
  height: calc(100% - 40px);
  width: 100%;
  border-radius: 0 0 8px 8px;
}

@media screen and (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
  }
  
  .modal-content {
    width: 95%;
    height: 95%;
    margin: 2.5% auto;
  }
}
