@font-face {
  font-family: Inter-Regular;
  src: url(/new/fonts/Inter_24pt-Regular.ttf) format("ttf");
  font-weight: normal;
  font-style: normal;
}

:root {
  --color-background: #444444;
  --color-primary-text: #ffffff;
  --color-secondary-text: #a0a0a0;
  --color-highlight: #ffffff;
  --max-width: 1280px;
}

body {
  background-color: var(--color-background);
  color: var(--color-primary-text);
  font-family: Inter-Regular, Arial, Helvetica;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--color-highlight);
  text-decoration: underline;
}

.header {
  top: 0;
  z-index: 50;
  background-color: #444444;
  padding-block-start: 2rem;
  padding-block-end: 3rem;
}

.header a {
  text-decoration: none;
}

.header h1 {
  margin-block-start: 0;
  margin-bottom: 0;
  font-size: 2em;
}

.header ul {
  display: flex;
  list-style-type: none;
  gap: 0.5rem;
  margin-block: 0;
  justify-content: end;
}

.header p {
  display: flex;
  justify-content: end;
  margin-block: 0;
}

.logo {
  width: 150px;
}

.header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column; /* Stack vertically on mobile */
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 870px) {
  .intro-section div:nth-of-type(2) {
    float: none;
  }

  /* .header-content {
    display: block;
  } */
}

.branding-group {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center for mobile */
  margin-bottom: 1rem; /* Space between branding group and nav on mobile */
}

.navigation {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-link {
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  color: var(--color-secondary-text);
}

.nav-link:hover {
  color: var(--color-highlight);
}

.nav-link.active {
  color: var(--color-primary-text);
  border-bottom-color: var(--color-highlight);
}

/* Desktop/Tablet Layout Adjustment */
@media (min-width: 640px) {
  .header-content {
    flex-direction: row; /* Branding group left, Nav group right */
    align-items: center; /* Vertically center content */
  }

  .branding-group {
    align-items: flex-start; /* Left align logo/title on desktop */
    margin-bottom: 0;
  }
  .title {
    text-align: left;
    margin-top: 0.25rem; /* Slight adjustment for visual balance */
  }
  /* Remove old logo-nav-container styles that are no longer needed */
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.intro-section {
  text-align: left;
  font-size: 1.25em;
  padding-block-end: 3rem;
  /* display: flex;
  flex-direction: column; */
}

.intro-section div {
  display: inline-block;
}

.intro-section div:nth-of-type(2) {
  float: right;
  font-size: 0.875rem;
  font-weight: 500;
}

.intro-section p {
  margin-block: 0;
}

.video-grid {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap to the next line */
  justify-content: center; /* Centers the rows of videos */
  gap: 3rem; /* Space between rows and columns */
  margin-top: 2rem;
}

.video-item {
  width: 100%; /* Full width on mobile */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 32rem; /* Limit max size of single column item */
}

/* Two-column layout for larger screens */
@media (min-width: 1024px) {
  .video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .video-item {
    width: auto; /* Grid handles the width */
    max-width: none;
  }
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 = 0.5625) */
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px rgba(255, 255, 255, 0.05); /* Subtle white shadow for depth */
  background: #000;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.description {
  margin-top: 1rem;
  max-width: 28rem;
}

.description h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-highlight);
  margin-bottom: 0.25rem;
}

.description p {
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

.description p span {
  color: var(--color-secondary-text);
  font-weight: 400;
  margin-right: 0.25rem;
}

.footer {
  margin-top: 2rem;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid #333;
  color: var(--color-secondary-text);
  font-size: 0.75rem;
}

.footer p {
  margin: 0;
}

/* Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery .gallery-item {
  height: 200px;
  flex-grow: 1;
  width: auto;
  position: relative;
}

.gallery .gallery-item img {
  height: 100%;
  /* width: 100%; */
  min-width: 100%;
}

.gallery .gallery-item .content {
  display: none;
  position: absolute;
  bottom: 0; /* At the bottom. Use top:0 to append it to the top */
  color: var(--color-highlight);
  width: 100%;
  padding: 5px; /* Some padding */
  text-align: center;
}

.gallery .gallery-item .content p {
  margin: 0;
}

.gallery .gallery-item:hover .content {
  display: block;
}

.grid-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--color-secondary-text);
}

@media (max-width: 713px) {
  .grid-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 714px) and (max-width: 973px) {
  .grid-list {
    grid-template-columns: repeat(4, 1fr);
  }
}