:root {
  --main_color: #01A7C8;
  --hover_color: #006b81;
  --white_color: #fff;
  --title_text_color: #333;
  --main_text_color: #555;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  background-color: #f8f8f8;
}

header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
  height: 55px;
}

main {
  min-height: calc(100vh - 75px);
}

.logo img {
  height: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 5px 10px;
  transition: color 0.3s;
}

nav a:hover {
  color: #01A7C8;
}


.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}

.burger-menu span {
  height: 3px;
  width: 25px;
  background-color: #333333;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 55px;
    right: 0;
    background-color: #fff;
    width: 100%;
  }

  nav ul.active {
    display: flex;
    margin-top: 15px;
    padding: 7px 0;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
  }

  .burger-menu {
    display: flex;
  }

  .dropdown-content {
    position: relative;
    left: 20px;
    top: 5px;
    margin: 5px 0;
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: flex;
  }
}

@media (min-width: 769px) {
  .dropdown:hover .dropdown-content,
  .dropdown:hover::after {
    display: block;
  }

  .dropdown:hover::after {
    content: "";
    font-size: 0.5em;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 30px;
  }

  .dropdown {
    position: relative;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    top: 37px;
    left: -90px;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    width: 300px;
    padding: 0;
    margin: 0;
    border-radius: 4px;
  }

  .dropdown-content li {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
  }

  #dropdown-content-last {
    border-bottom: none;
  }

  .dropdown-content li a {
    color: #333;
    text-decoration: none;
    display: block;
  }

  .dropdown-content li a:hover {
    color: #01A7C8;
  }

}

.slideshow {
  position: relative;
  height: calc(100vh - 75px);
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: none;
}

.slide-link {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s;
  font-size: 1em;
  border-radius: 4px;
}

.slide-link:hover {
  background-color: #01A7C8;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #ffffff;
  border-top: 1px solid #e1e1e1;
}

footer a {
  text-decoration: none;
  color: #333;
  padding: 0 10px;
}

footer a:hover {
  color: #01A7C8;
}

.max-w {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 4rem;
  width: 100%;
  max-width: 72rem;
  padding-left: .625rem;
  padding-right: .625rem;
  box-sizing: border-box;
}

@media (min-width: 1180px) {
  .max-w {
    margin-bottom: 6rem;
    padding-left: 0;
    padding-right: 0
  }
}

.exhibitions {
  margin-top: 3rem;
}

.exhibition-preview {
  display: grid;
  width: 100%;
  place-items: center;
  overflow: hidden;
}

.exhibition-preview > * {
  grid-column-start: 1;
  grid-column-end: 1;
  grid-row-start: 1;
  grid-row-end: 1;
}

.exhibition-preview img {
  border-radius: 30px;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  max-width: 100%;
  height: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.exhibition-preview > div {
  box-sizing: border-box;
  display: flex;
  z-index: 10;
  height: 100%;
  width: 100%;
  justify-content: space-between;
  gap: 1.25rem;
  border-radius: 30px;
  padding: 1.25rem;
  background-color: #555555b3;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
  .exhibition-preview > div {
    padding: 2.5rem;
  }
}

.exhibition-preview > div > div {
  display: grid;
  max-width: 40rem;
}

.exhibition-preview > div > div:first-child {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: .625rem;
}

.exhibition-preview > div p {
  display: -webkit-box;
  text-wrap: balance;
  font-size: .875rem;
  line-height: 1.25rem;
  color: #ffffff;
  margin: 0;
  white-space: pre-wrap;
  line-clamp: 6;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}

@media (min-width: 768px) {
  .exhibition-preview > div p {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

.exhibition-preview > div h2 {
  margin: 10px 0;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  color: #ffffff;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .exhibition-preview > div h2 {
    font-size: 3rem;
    line-height: 1.1;
  }
}

.read-more-button {
  display: grid;
  place-self: end;
  padding: 0 3rem;
  background-color: #01A7C8;
  border-radius: 9999px;
  text-decoration: none;
  height: fit-content;
  width: fit-content;
  min-width: 4rem;
  min-height: 4rem;
  font-weight: bold;
  font-size: 1em;
  color: #ffffff;
  place-items: center;
}

.read-more-button:hover {
  background-color: #006b81;
}

.info-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  line-height: 1.6;
}

.info-section h1, .info-section h2, .info-section h3 {
  color: #333;
  margin-bottom: 10px;
}

.info-section h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.info-section h2 {
  font-size: 2em;
  margin-bottom: 15px;
}

.info-section p {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 20px;
}

.info-section p strong {
  color: #333;
}

.exhibition-detail {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.exhibition-header h1 {
  font-size: 2em;
  color: #333333;
  margin-bottom: 20px;
}

.exhibition-header p {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 40px;
  white-space: pre-wrap;
}

.gallery {
  background: var(--white_color);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-image-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

.main-image {
  flex: 1;
  max-width: 800px;
  display: flex;
  margin: auto;
  justify-content: center;
}

@media (max-width: 1059px) {
  .main-image img {
    width: calc(100% - 40px);
  }
}

.main-image img {
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-title {
  display: none;
}

#currentImage:hover {
  cursor: zoom-in;
}


@media (min-width: 1300px) {
  .exhibition-detail {
    padding: 40px 80px;
  }

  .exhibition-header h1 {
    font-size: 2.5em;
  }

  .exhibition-header p {
    font-size: 1.3em;
  }
}

@media (min-width: 1060px) {
  .image-title {
    flex: 2;
    font-size: 2em;
    margin-left: 20px;
    text-align: center;
    color: #333333;
    display: block;
  }

  .main-image {
    display: block;
    margin: 0;
    justify-content: left;
  }

  .main-image img {
    max-width: 700px;
  }
}

.thumbnail-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.thumbnail {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
  border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  transform: scale(1.05);
  border-color: #01A7C8;
}

@media (max-width: 650px) {
  .thumbnail {
    width: 45%;
  }
}

.contact-form-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.contact-form-section h2 {
  text-align: center;
  color: #333333;
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #01A7C8;
  outline: none;
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  align-self: flex-end;
  text-decoration: none;
  color: #ffffff;
  background-color: #01A7C8;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #006b81;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 100;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-image {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

.lightbox-image:hover{
  cursor: pointer;
}

.close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus{
  color: #bbb;
  text-decoration: none;
}

#caption{
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}