* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f4f4;
  color: #222;
  line-height: 1.5;
}

.site-header {
  background: #1f2937;
  color: white;
  padding: 32px 24px;
  text-align: center;
}

.site-header h1 {
  font-size: 2.4rem;
  margin-bottom: 6px;
}

.site-header p {
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: white;
  border-bottom: 1px solid #ddd;
}

.nav-button {
  min-width: 180px;
  padding: 16px 24px;
  font-size: 1.15rem;
  font-weight: bold;
  border: 2px solid #1f2937;
  background: white;
  color: #1f2937;
  border-radius: 8px;
  cursor: pointer;
}

.nav-button:hover,
.nav-button.active {
  background: #1f2937;
  color: white;
}

main {
  max-width: 1200px;
  margin: auto;
  padding: 32px 24px 60px;
}

.content-section {
  display: none;
}

.active-section {
  display: block;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.section-heading p {
  font-size: 1.1rem;
  color: #555;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.media-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  cursor: pointer;
  transition: transform .2s ease;
}

.media-card:hover {
  transform: translateY(-4px);
}

.media-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.media-card-content {
  padding: 18px;
}

.media-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.media-card p {
  color: #555;
  margin-bottom: 16px;
}

.open-button {
  display: inline-block;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 6px;
  background: #1f2937;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 999;
  overflow-y: auto;
}

.viewer {
  max-width: 1200px;
  margin: auto;
  padding: 25px;
  color: white;
}

.viewer h2 {
  font-size: 2rem;
  margin: 24px 0;
}

#videoPlayer {
  width: 100%;
  height: 70vh;
  border: none;
  background: black;
}

.close-button {
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-radius: 6px;
}

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

.photo-grid img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.video-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.video-header h2 {
  margin: 0;
}

@media (max-width: 700px) {

  .site-header h1 {
    font-size: 2rem;
  }

  .main-nav {
    flex-direction: column;
  }

  .nav-button {
    width: 100%;
  }
  
   .video-header {
    height: 50px;
    gap: 8px;
  }

  .video-header h2 {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .video-header .close-button {
    flex-shrink: 0;
    margin: 0;
  }

  .video-frame-wrapper {
    position: relative;
    width: 100%;
    height: calc(100dvh - 44px);
    overflow: hidden;
  }

  #videoPlayer {
    position: absolute;
    top: -260px;
    left: 0;

    width: 100%;
    height: calc(100dvh + 100px);

    border: 0;
    background: black;
  }

}
