:root {
  /* rest of the colors */
  --black: #222;
  --charcoal: #434343;
  --white: #fff;
  --blue-primary: #4f71be;
  --blue-dark: #2a6ebb;
  --blue-light: #4eadea;
  --yellow: #f5c342;
  --green: #73ab55;

  /* small text */
  --small-text: 0.875rem;
  --extra-small-text: 0.7em;

  /* rest of the vars */
  --border-radius: 0.25rem;
  --letter-spacing: 1px;
  --transition: 0.3s ease-in-out all;

  /* box shadow*/
  --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body,
html,
header {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  width: 100%;
  color: var(--charcoal);
}

/* Anchor Links */
a {
  color: var(--charcoal);
}

a:hover {
  color: var(--green);
}

/* Global Classes */
.small-text {
  font-size: var(--extra-small-text);
  margin-top: 0;
}

.add-margin-top {
  margin-top: 2rem;
}

.add-margin-bottom {
  margin-bottom: 0.75rem;
}

/* Site Container */
.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Buttons */
.btn {
  cursor: pointer;
  color: var(--charcoal);
  background: var(--yellow);
  text-decoration: none;
  text-transform: uppercase;
  border: transparent;
  border-radius: var(--border-radius);
  letter-spacing: var(--letter-spacing);
  padding: 0.375rem 0.75rem;
  box-shadow: var(--shadow-1);
  transition: var(--transition);
  text-transform: uppercase;
  display: inline-block;
}

.btn:hover {
  background-color: #edb529;
  box-shadow: var(--shadow-3);
}

/* Navbar */
.site-nav {
  padding: 10px;
}

.site-nav {
  background-color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  position: sticky;
  top: 0; /* Stick to the top of the screen */
  z-index: 100; /* Ensure it's above other content */
}

.nav-logo img {
  max-width: 10rem;
}

.nav-links {
  display: flex;
  align-items: center;
}

.main-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.main-links li {
  margin-right: 20px;
}

.main-links li a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
}

.main-links li a:hover,
.main-links li a:active,
.main-links li a:focus,
.main-links li a:target {
  color: var(--blue-primary);
}

/* Footer */
.site-footer {
  background-color: var(--white);
  color: var(--charcoal);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-text {
  font-size: 0.75rem;
}

.footer-right img {
  max-width: 9rem;
}

.footer-left {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.social-link {
  color: white;
  margin: 0 0.25rem;
  text-decoration: none;
}

.social-link img {
  margin-left: 0.25rem;
  width: 1rem;
}

.social-link:first-child {
  margin-left: 0;
}

/* Photo Gallery */
.gallery-wrapper {
  padding: 5rem 10rem;
  background-color: #f0f8f4;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.inner-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.image-wrapper {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.image {
  width: 100%;
  height: auto;
  border-radius: inherit;
  display: block;
}

.info-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  width: 1.5rem;
  height: 1.5rem;
  z-index: 2;
}

.info-icon-svg {
  width: 100%;
  height: auto;
}

.text-block {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.7rem;
  border-radius: 0.5rem;
  padding: 2rem;
  min-height: 100px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.text-block-green {
  background-color: #4caf50;
}
.text-block-yellow {
  background-color: #ffb400;
  color: var(--charcoal);
}

.gallery-paragraph {
  margin: 2rem auto;
  background-color: #e6f4ea;
  padding: 1.5rem;
  border-left: 6px solid #4caf50;
  border-radius: 0.5rem;
  color: #2e7d32;
  font-size: 1.125rem;
  line-height: 1.6;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 999;
  flex-direction: column;
  padding: 1rem;
  box-sizing: border-box;
}

/* Container for image or video inside lightbox */
.lightbox-media {
  max-height: 80vh; /* Restrict height */
}

/* For images inside lightbox */
.lightbox-img {
  max-height: 70vh;
  border-radius: 0.5rem;
}

/* For videos inside lightbox */
.lightbox video {
  max-height: 75vh;
  object-fit: contain;
}

/* Title styling */
.lightbox-title {
  font-size: 1rem;
  color: white;
  text-align: center;
  margin-top: 0.5rem; /* Spacing between the image and title */
  padding: 0 10px;
  max-width: 100%;
}

.lightbox-description {
  display: none;
  max-width: 60%;
  color: white;
  text-align: left;
  font-size: 1.2rem;
  background-color: var(--blue-primary);
  padding: 0.25rem 1.75rem;
  border-radius: 0.5rem;
}

.back-link {
  font-size: 1rem;
  text-decoration: none;
  color: #4caf50;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}
.back-link:hover {
  color: #388e3c;
}
.back-link svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

@media (max-width: 1420px) {
  .gallery-wrapper {
    padding: 3rem 2rem;
  }
}

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

  .lightbox-description {
    max-width: 85%;
  }
}

@media (max-height: 775px) {
  .lightbox-description {
    /* max-width: 90%; */
    font-size: .8rem;
  }
}

@media (max-width: 768px) {
  .lightbox-description {
    max-width: 85%;
  }
}

@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr;
  }

  .info-icon {
    width: 1.1rem;
    height: 1.1rem;
    padding: 0.15rem;
  }

  .text-block {
    padding: 1rem;
  }

  .lightbox-img,
  .lightbox video {
    max-width: 100%;
  }

  .lightbox-title {
    font-size: 0.75rem;
  }

  .lightbox-description {
    max-width: 100%;
    font-size: 1rem;
  }
  .back-link-text {
    display: none;
  }
}