/* Local font definitions */
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Montserrat-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Montserrat-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/OpenSans-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/OpenSans-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/OpenSans-700-normal.woff2") format("woff2");
}

/* Global Reset & Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #fff;
  color: #101010;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: #744db3;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: #583988;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #feed00;
  outline-offset: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Navigation */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 84px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #101010;
}

.nav-toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #101010;
  position: relative;
  transition: background-color 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: #101010;
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  bottom: -7px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #777;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  padding: 10px 4px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-link.active,
.nav-link:hover {
  color: #101010;
  text-decoration: none;
}

/* Hero Section */
.hero-section {
  padding: 48px 0 0;
  background-color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 636px;
  gap: 32px;
  align-items: center;
}

.hero-content h1 {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 45px;
  font-weight: 400;
  color: #744db3;
  margin: 0 0 24px;
  line-height: 1.15;
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 636px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #000;
  aspect-ratio: 848 / 480;
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-video:focus-visible {
  outline: 2px solid #feed00;
  outline-offset: -2px;
}

.hero-video-error {
  margin: 8px 0 0;
  font-size: 16px;
  color: #101010;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #feed00;
  color: #101010;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 4px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-top: 16px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #e5d500;
  color: #101010;
  text-decoration: none;
}

/* Gallery Section */
.gallery-section {
  padding: 48px 0;
  background-color: #fff;
}

.gallery-container {
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0 16px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgb(0 0 0 / 15%);
  background-color: rgb(255 255 255 / 90%);
  color: #101010;
  cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
  transition: background-color 0.2s ease;
}

.gallery-btn:hover {
  background-color: #feed00;
  color: #101010;
}

.gallery-btn:focus-visible {
  outline: 2px solid #744db3;
  outline-offset: 2px;
  background-color: #feed00;
}

.gallery-btn-prev {
  left: 8px;
}

.gallery-btn-next {
  right: 8px;
}

.gallery-btn-icon {
  font-size: 20px;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    scroll-behavior: auto;
  }

  .gallery-btn {
    transition: none;
  }
}

.gallery-card {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
  background-color: #f9f9f9;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.gallery-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 8px;
}

.gallery-img {
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Met Museum Update Section */
.update-section {
  padding: 0 0 32px;
  background-color: #fff;
}

.update-box {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  line-height: 1.5;
}

.update-badge {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #744db3;
}

.update-text {
  margin: 0;
}

/* About Section */
.about-section {
  background-color: #744db3;
  color: #fff;
  padding: 64px 0;
}

.about-title {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 37px;
  font-weight: 400;
  text-align: center;
  color: #fff;
  margin: 0 0 48px;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-col {
  padding: 24px;
  border-radius: 4px;
  color: #fff;
}

.about-col h3 {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 31px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 20px;
}

.about-col p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
}

.about-col-content {
  background-color: transparent;
}

.about-col-guests {
  background-color: rgb(255 255 255 / 20%);
}

.about-col-data {
  background-color: rgb(255 255 255 / 40%);
}

/* Footer */
.site-footer {
  background-color: #101010;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.footer-nav {
  margin-bottom: 16px;
  font-size: 16px;
}

.footer-nav a {
  color: #fff;
  padding: 10px 8px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #feed00;
}

.footer-copyright {
  font-size: 14px;
  color: #aaa;
  margin: 0;
}

/* Responsive Media Queries */
@media (width <= 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (width <= 767px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    justify-content: flex-end;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
    align-items: flex-start;
    gap: 8px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
  }

  .hero-section {
    padding: 32px 0 0;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .gallery-section {
    padding: 24px 0;
  }

  .update-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .about-section {
    padding: 40px 0;
  }

  .about-title {
    font-size: 28px;
    margin-bottom: 32px;
  }
}

@media (width <= 599px) {
  .gallery-card {
    flex: 0 0 100%;
    min-height: 320px;
  }
}
