/* Reset and layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Georgia', serif;
  background-color: #1c1c1c;
  color: #c0c0c0;
  line-height: 1.6;
  overflow-x: hidden;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.film-strip {
  position: relative;
  background-color: #000;
  color: #c0c0c0;
  text-align: center;
  padding: 2rem 1rem;
  border-top: 6px solid #c0c0c0;
  border-bottom: 6px solid #c0c0c0;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.film-content h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  animation: fadeUp 2s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.film-content p {
  font-style: italic;
  font-size: 1.2rem;
  color: #999;
  animation: fadeUp 2s ease-out forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 0.2em;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.05em;
  }
}

/* Sprockets */
.sprockets {
  display: flex;
  justify-content: space-between;
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  padding: 0 1rem;
  z-index: 1;
  pointer-events: none;
}

.sprockets.top {
  top: 0;
}

.sprockets.bottom {
  bottom: 0;
}

.sprockets span {
  width: 12px;
  height: 12px;
  background-color: #c0c0c0;
  border-radius: 2px;
  display: block;
}
.film-reel {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
  position: relative;
}

.reel-frame {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: #000;
  border: 6px solid #c0c0c0;
  box-shadow: 0 0 12px rgba(192, 192, 192, 0.3);
  overflow: hidden;
}

.lodge-crest {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 0 4px rgba(192, 192, 192, 0.3));
}

/* Sprocket Ring */
.sprocket-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sprocket-ring span {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #c0c0c0;
  border-radius: 50%;
}

/* Positioning sprockets around the reel */
.sprocket-ring span:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.sprocket-ring span:nth-child(2) { top: 25%; left: 90%; transform: translateY(-50%); }
.sprocket-ring span:nth-child(3) { top: 50%; left: 100%; transform: translateY(-50%); }
.sprocket-ring span:nth-child(4) { top: 75%; left: 90%; transform: translateY(-50%); }
.sprocket-ring span:nth-child(5) { bottom: 0; left: 50%; transform: translateX(-50%); }
.sprocket-ring span:nth-child(6) { top: 75%; left: 10%; transform: translateY(-50%); }
.sprocket-ring span:nth-child(7) { top: 50%; left: 0; transform: translateY(-50%); }
.sprocket-ring span:nth-child(8) { top: 25%; left: 10%; transform: translateY(-50%); }

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #000;
  box-shadow: 0 2px 4px rgba(192, 192, 192, 0.1);
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1rem;
  flex-direction: column;
  position: relative;
}

.menu-icon {
  display: none;
  cursor: pointer;
  margin-bottom: 1rem;
}

.menu-icon .nav-icon {
  background-color: #c0c0c0;
  height: 3px;
  width: 25px;
  border-radius: 2px;
  position: relative;
  display: block;
}

.menu-icon .nav-icon::before,
.menu-icon .nav-icon::after {
  content: '';
  background-color: #c0c0c0;
  height: 3px;
  width: 25px;
  border-radius: 2px;
  position: absolute;
  left: 0;
}

.menu-icon .nav-icon::before {
  top: -8px;
}

.menu-icon .nav-icon::after {
  top: 8px;
}

#menu-toggle {
  display: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.nav-links li a {
  color: #c0c0c0;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links li a:hover {
  background-color: #333;
  color: #fff;
  border-radius: 4px;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .menu-icon {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #000;
    display: none;
    padding: 1rem;
    z-index: 999;
  }

  #menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }

  .nav-links li a {
    display: block;
    text-align: center;
    padding: 1rem;
  }
}

/* Main Content */
main {
  flex: 1;
  width: 100%;
  padding: 2rem;
  background-color: #2b2b2b;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.column.full-width {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #1c1c1c;
  padding: 2rem;
  border: 1px solid #c0c0c0;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.05);
}

/* Portrait and Welcome */
.master-portrait {
  text-align: center;
  margin: 2rem auto;
}

.master-portrait img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border: 4px solid #c0c0c0;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.2);
}

.caption {
  margin-top: 0.75rem;
  font-style: italic;
  color: #999;
}

.welcome-message {
  margin-top: 2rem;
  text-align: left;
  font-size: 1rem;
  line-height: 1.7;
  color: #e0e0e0;
}
.caption {
  margin-top: 0.75rem;
  font-style: italic;
  color: #999;
  font-size: 1rem;
  line-height: 1.5;
}

.welcome-message p {
  margin-bottom: 1.2rem;
}
h2 {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-align: center;
  color: #c0c0c0;
}
/* Syllabus Page */
.syllabus-intro {
  text-align: center;
  font-style: italic;
  margin-bottom: 2rem;
  color: #999;
}

.syllabus-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.syllabus-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2b2b2b;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #c0c0c0;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(192, 192, 192, 0.05);
}

.syllabus-date {
  font-weight: bold;
  color: #ccc;
  min-width: 180px;
}

.syllabus-event {
  font-style: italic;
  color: #e0e0e0;
}
/* Office Bearers Page */
.office-intro {
  text-align: center;
  font-style: italic;
  margin-bottom: 2rem;
  color: #999;
}

.office-group {
  margin-bottom: 2.5rem;
}

.office-group h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c0c0c0;
  border-bottom: 1px solid #444;
  padding-bottom: 0.5rem;
}

.office-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.office-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #2b2b2b;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #c0c0c0;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(192, 192, 192, 0.05);
}

.office-list li strong {
  color: #ccc;
  font-weight: bold;
  flex: 1 1 250px;
  margin-bottom: 0.5rem;
}

.office-list li {
  flex: 1 1 100%;
  font-style: italic;
  color: #e0e0e0;
  text-align: left;
}

/* Responsive adjustment */
@media (max-width: 600px) {
  .office-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .office-list li strong,
  .office-list li span {
    flex: none;
    width: 100%;
    text-align: left;
  }
}
/* Past Masters Page */
.pastmasters-intro {
  text-align: center;
  font-style: italic;
  margin-bottom: 2rem;
  color: #999;
}

.pastmasters-decade {
  margin-bottom: 3rem;
}

.pastmasters-decade h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c0c0c0;
  border-bottom: 1px solid #444;
  padding-bottom: 0.5rem;
}

.pastmasters-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.pastmasters-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2b2b2b;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-left: 4px solid #c0c0c0;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(192, 192, 192, 0.05);
  font-size: 1rem;
  line-height: 1.6;
}

.pastmasters-list li span {
  font-weight: bold;
  color: #ccc;
  min-width: 140px;
}

.pastmasters-list li::after {
  content: '';
  flex: 1;
}
/* History Page */
.history-intro {
  text-align: center;
  font-style: italic;
  margin-bottom: 2rem;
  color: #999;
}

.history-section {
  margin-bottom: 2.5rem;
}

.history-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c0c0c0;
  border-bottom: 1px solid #444;
  padding-bottom: 0.5rem;
}

.history-section p {
  line-height: 1.7;
  color: #e0e0e0;
  margin-bottom: 1rem;
}

blockquote {
  margin: 1rem 0;
  padding: 1rem;
  background-color: #2b2b2b;
  border-left: 4px solid #c0c0c0;
  font-style: italic;
  color: #ccc;
  box-shadow: 0 1px 4px rgba(192, 192, 192, 0.05);
  border-radius: 4px;
}

.history-credit {
  text-align: right;
  font-style: italic;
  color: #999;
  margin-top: 3rem;
}
/* Gallery Page */
.gallery-intro {
  text-align: center;
  font-style: italic;
  margin-bottom: 2rem;
  color: #999;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery-grid a {
  display: block;
  border: 4px solid #c0c0c0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid a:hover {
  transform: scale(1.03);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.3);
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
}
/* Contact Page */
.contact-intro {
  text-align: center;
  font-style: italic;
  margin-bottom: 2rem;
  color: #999;
}

.contact-details {
  background-color: #2b2b2b;
  padding: 2rem;
  border-left: 4px solid #c0c0c0;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.05);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: #e0e0e0;
}

.contact-details p {
  margin-bottom: 1.5rem;
}

.contact-details strong {
  color: #ccc;
}

#email-link {
  font-style: italic;
  color: #999;
}

/* Map */
.map-container {
  margin-top: 2rem;
  text-align: center;
}

.map-container iframe {
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.2);
}

.map-caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #999;
}

.map-caption a {
  color: #c0c0c0;
  text-decoration: underline;
}

.map-caption a:hover {
  color: #fff;
}
/* Footer */
.lodge-footer {
  position: relative;
  background-color: #000;
  color: #c0c0c0;
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  border-top: 4px solid #c0c0c0;
  font-size: 0.95rem;
}