/* General */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.row {
  margin: 0 auto 15px; /* bottom spacing between the gallery rows */
}

/* Find cooler font, eg Montserrat */
body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
}

header {
  position: fixed;
  width: 100%;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  /* font-size: medium; */
  top: 0;
  left: 0;
  z-index: 1000;
}

h2 {
  text-align: center;
  }


  /* Navigation */
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 1rem;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: rgb(100, 100, 100);
  text-decoration: none;
}

nav ul li a.active {
  font-weight: bold;
  color: #000000; /* Optional: add a different color to highlight the active link */
}


/* Section */
section {
  padding: 5rem 1rem 1rem;
  margin-top: 1rem;
}


/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
  gap: 40px;
  justify-items: center;
  margin: 0 auto;
  max-width: 1200px;
}

.gallery {
  margin: 0 auto 15px; /* bottom spacing between the gallery rows */
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 355px;
}

.gallery-item img {
  width: 100%;
  height: 425px;       /* uniform height again on desktop */
  object-fit: cover;   /* crop nicely */
  object-position: center;
  border: 1px solid #ddd;
  display: block;
  border-radius: 2px;
}

.gallery-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.3;
}

@media (max-width: 480px) {
  .row {
    margin-bottom: 15px; /* much more breathing room */
  }
}

/* Tablet */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 20px;
  }

  .gallery-item img {
    height: auto;   /* keep proportions on smaller screens */
  }
}

/* Phone */
@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr; /* 1 column */
    gap: 12px;
  }

  .gallery-item img {
    height: auto;   /* natural scaling */
  }
}


/* Icons */
.icons {
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: center;       /* center vertically */
  flex-wrap: nowrap;         /* keep all in one row */
  gap: 1.2rem;               /* space between icons */
  margin-top: 5rem;
  overflow-x: auto;          /* allow horizontal scroll if too many icons */
}

.icon-item {
  flex: 0 0 auto;            /* prevent stretching */
  text-align: center;
}

.icon-item img {
  max-width: 36px;           /* slightly smaller for mobile */
  height: auto;
}

/* Optional: shrink icons further on very small screens */
@media (max-width: 480px) {
  .icon-item img {
    max-width: 28px;
  }
}


/* Legal stuff */
.legal-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  font-size: 0.7rem;
  color: rgb(150, 150, 150);
}

.legal-links a {
    all: unset;
    display: inline-block;
    justify-content: center; /* horizontal centering */
    color: rgb(150, 150, 150);
    text-decoration: none;
    cursor: pointer;
}

.legal-links a:hover {
    text-decoration: underline;
}


/* Lightbox overlay (hidden by default) */
#lightbox {
  display: none;               /* hidden until triggered */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8); /* greyed out background */
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Content centered */
.lightbox-content {
  text-align: center;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-content p {
  color: white;
  margin-top: 10px;
  font-size: 16px;
}