:root {
  --primary: #003366;
  --accent: #ffcc00;
  --bg: #f4f7fa;
  --text: #222;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg) url('../snowy-landscape.jpg') no-repeat center center fixed; /*The parameter within URL is the background image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.6;
  
    max-width: 100vw;   /* Prevents overflow beyond viewport */
  min-width: 320px;   /* Stops shrinking too small */

}

.page-wrapper {

  max-width: 75vw; /* 90% of the viewport width */
  min-width: 320px; /* Won’t shrink smaller than 320px */
  margin: auto;
    padding: 0 2rem;

}

header {
  background: var(--primary);
  color: white;
  padding: .15rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 1;
}

.logo {
  width: 175px;
  height: auto;
  position: relative;
  top: -5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem; /* try 1.5rem or 18px for larger text */
  font-weight: 600;
  padding: 0.5rem;
  transition: background 0.3s;
}

nav a:hover {
  background: #ffffff;
  color: var(--primary);
  border-radius: 4px;
}
main { /*background to the main contect area on the page */
  padding: 2rem 0;
  background-color: rgba(255, 255, 255, 0.95); /* Soft white with slight transparency */
  /*
  To make rgba(255, 255, 255, 0.9) slightly less transparent, you simply increase the alpha value (the fourth number). The alpha controls opacity on a scale from 0 (fully transparent) to 1 (fully opaque).
  */
  border-radius: 8px;                         /* Optional: adds a nice rounded edge */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);   /* Optional: subtle depth */
  font-size: 1.15rem; /* Adjust this value as needed */


}

.main-content {
  padding-left: 2rem;
  padding-right: 2rem;
}


h1, h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
h2 {
  font-size: 1.4rem; /* The size of the sub-headings on each page  */
}


footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;

}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
	  header {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }
  header nav a {
    font-size: 1rem;
  }

  
  .logo-title {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

}

/* === Photo Gallery Styles === */

#album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 4rem;           /* ⬅️ Controls spacing between cards */
  margin: 2rem auto;
  justify-content: center;
  padding: 0 1rem;       /* ⬅️ Adds breathing room on the sides */
}

.album-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f5f5f5;
  padding: .5rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  width: 100%;         /* ⬅️ Changed from fixed 120px */
  max-width: 200px;    /* ⬅️ Optional: limits how wide it can grow */
  box-sizing: border-box;/* ⬅️ Ensures padding doesn’t break layout */
}

.album-thumb {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  display: block;
}


.arrow {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 0 1rem;
  transform: translateY(-50%);
}

.arrow.left {
  left: 1rem;
}

.arrow.right {
  right: 1rem;
}

.back-button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: var(--accent);
  color: var(--primary);
}

/* LIGHTBOX CODE  */

.lightbox {
  position: fixed;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.8);
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox .close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 3rem; /* ⬆️ Increased from 2rem */
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lightbox .close:hover {
  transform: scale(1.2);
}

