:root {
  overscroll-behavior: none;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #EEE;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

nav ul.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 250px;
  gap: 3rem;
}

nav ul a {
  color: #EEE;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

nav ul a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #EEE;
  transition: width 300ms ease;
}

nav ul a:hover::after {
  width: 100%;
}

nav ul a.active::after {
  width: 100%;
}

nav #menu-toggle {
  display: none;
  color: #EEE;
  font-size: 32px;
  cursor: pointer;
}

nav #menu {
  display: none;
  padding: 0px 25px 20px 25px;
  position: absolute;
  background-color: rgba(23, 20, 76, 0.557);
  margin: 34px 0 0 -20px;
}

nav #menu li {
  margin-top: 20px;
}

nav #menu ul.mobile-nav {
  display: block;
}

nav {
  position: absolute;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  width: auto;
  height: 80px;
  background: rgba(45, 45, 45, 0.50);
  z-index: 10;
}

nav ul.desktop-nav:first-child { margin-right: 10%; }
nav ul.desktop-nav:last-child  { margin-left: 10%; }

nav a[href="index.html"] {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

nav a[href="index.html"]::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #EEE;
  transition: width 300ms ease;
}

nav a[href="index.html"]:hover::after {
  width: 100%;
}

nav #logo {
  width: 80px;
  height: 80px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.header-img {
  position: relative;
  overflow: hidden;
}

.header-img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.075) 0%, rgba(0, 0, 0, 0.877) 100%);
}

.header-img img {
  width: 100%;
  height: auto;
  min-width: 1000px;
  display: block;
  position: relative;
  z-index: 0;
  left: 50%;
  transform: translateX(-50%);
}

.content {
  text-align: center;
  gap: 48px;
  color: #000;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: auto;
  max-width: 800px;
  padding: 80px 20px;
}

.content h1 {
  font-size: 36px;
}

section#rotunda {
  width: 100%;
  padding-top: 200px;
  box-sizing: border-box;
}

.rotunda-hero {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.circle {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotunda-content {
  width: 50%;
  padding: 40px 60px;
  color: #000;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  box-sizing: border-box;
}

.rotunda-content h2 {
  font-size: 22px;
}

.rotunda-content p {
  font-size: 14px;
}

.mini-gallery {
  height: 300px;
  padding-bottom: 60px;
  max-width: 1100px;
  margin: 60px auto 120px auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3.5rem;
}

.mini-gallery img {
  width: 360px;
  height: 220px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
  transition: opacity 400ms ease;
}

.mini-gallery img.left {
  transform: rotate(-18deg) translate(-200px, 12px);
}

.mini-gallery img.center {
  transform: translateY(-6px) scale(1.3);
}

.mini-gallery img.right {
  transform: rotate(18deg) translate(200px, 12px);
}

.mini-gallery + div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 120px;
  margin: -40px auto 80px auto;
  max-width: 1100px;
}

.mini-gallery + div svg,
.arrows svg {
  display: block;
}

@media screen and (max-width: 1000px) {
  #rotunda {
    padding-top: 160px;
  }
}

.history-page {
  padding-top: 180px;
  max-width: 1100px;
  margin: 0 auto 80px auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.history-page .timeline {
  position: relative;
  margin: 0 0 28px 0;
  background: transparent;
  height: 72px;
  padding: 10px 20px;
}

.history-page .timeline ul {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
  margin: 0;
  gap: 0;
  width: 100%;
}

.history-page .timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  background: #8b1c1c;
  border-radius: 4px;
  transform: translateY(-50%);
  z-index: 0;
}

.history-page .timeline li {
  list-style: none;
  position: relative;
  z-index: 2;
  text-align: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: transform 200ms ease;
}

.history-page .timeline li:hover {
  transform: translateY(-3px);
}

.history-page .timeline li:hover .dot {
  box-shadow: 0 0 0 6px rgba(139,28,28,0.14), 0 2px 6px rgba(0,0,0,0.15);
}

.century-content {
  display: none;
}

.century-content.active {
  display: block;
}


.history-page .timeline .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #8b1c1c;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.history-page .timeline .dot.active {
  box-shadow: 0 0 0 6px rgba(139,28,28,0.14), 0 2px 6px rgba(0,0,0,0.15);
}

.history-page .timeline span {
  display: block;
  margin-top: 52px;
  font-size: 14px;
  color: #222;
}

.history-page figure {
  width: 50%;
  max-width: 350px;
  margin: 0;
}

.history-page figure img {
  width: 100%;
  height: auto;
  display: block;
}

.history-page figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: #222;
  text-align: center;
}

.history-page .history-columns {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  align-items: flex-start;
  padding: 0 40px;
  justify-content: center;
}

.history-page .history-columns p{
  width: 50%;
}

.architecture {
  padding-top: 160px;
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 0 auto;
}

.architecture .left, .architecture .right {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.architecture-content {
  max-width: 400px;
  color: #000;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: justify;
}

.left .architecture-content {
  padding-right: 80px;
}

.right .architecture-content {
  padding-left: 80px;
}

.architecture-content h1 {
  font-size: 24px;
  margin-bottom: 16px;
  text-align: center;
}

.architecture img {
  width: 100%;
  min-width: 300px;
  height: auto;
  display: block;
}

.gallery {
  padding: 160px 0;
  margin: 0 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  justify-items: center;
  gap: 16px;
}

.gallery-item {
  position: relative;
  width: 350px;
  height: 380px;
  padding-top: 30px;
  cursor: pointer;
}

.gallery img {
  width: 350px;
  height: 350px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  transition: filter 200ms ease, transform 200ms ease;
}

.gallery-title {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  color: #FFF;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.gallery-item:hover img {
  filter: brightness(0.4);
  transform: scale(1.03);
}

.gallery-item:hover .gallery-title {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 800px) {
  .content {
    font-size: 18px;
    max-width: 100%;
    padding: 60px;
  }

  .content h1 {
    font-size: 28px;
  }

  .rotunda-hero {
    flex-direction: column;
    gap: 40px;
  }

  .rotunda-content {
    width: 80%;
  }

  .architecture div {
    flex-direction: column;
  }

  .left .architecture-content, .right .architecture-content {
    max-width: 75%;
    padding: 0 0 48px 0;
  }

  .architecture img {
    width: 75%;
    height: auto;
    order: 3
  }

  .history-page .history-columns {
    padding: 0 80px;
  }
}

@media screen and (max-width: 700px) {
  .history-page .history-columns {
    flex-direction: column;
    padding: 0 20px;
  }

  .history-page .history-columns p {
    width: auto;
    padding: 0 30px;
  }

  .history-page figure {
    width: 60%;
    max-width: none;
    margin: 40px auto 0 auto;
    order: -1;
  }
}

@media screen and (max-width: 600px) {
  nav ul.desktop-nav {
    display: none;
  }
  
  nav #menu-toggle {
    display: block;
  }
  
  nav {
    justify-content: space-between;
    padding-right: 20px;
  }

  .rotunda-content {
    padding: 0;
  }
}

@media screen and (max-width: 500px) {
  .gallery-item {
    width: 250px;
    height: 250px;
  }

  .gallery img {
    width: 250px;
    height: 250px;
  }

  .gallery {
    margin: 0;
  }

  .architecture-content {
    text-align: center;
  }

  .architecture .left {
    padding: 0 0 0 0;
  }

  .architecture .right {
    padding: 0 0 0 0;
  }

  .arrows {
    transform: scale(0.70);
  }

  .mini-gallery + div{
    gap: 180px;
  }
}

footer {
  background: rgba(45, 45, 45, 0.95);
  color: #EEE;
  text-align: center;
  padding: 30px 20px;
  font-family: Tahoma;
  font-size: 14px;
  margin-top: 60px;
}

footer p {
  margin: 0;
}