body{
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #2a231b;
  background: #f1e4cc url("/images/parchment.jpg") repeat;
  background-size: 900px auto;
}

html,
body{
  min-height: 100%;
}

header{
  text-align: center;
  padding: 28px 0 10px;
}

header img{
  display: block;
  margin: 0 auto 10px;
}

nav{
  margin: 18px auto 0;
  display: inline-flex;
  gap: 0;
  border: 1px solid rgba(42,35,27,.25);
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}

nav a{
  padding: 12px 18px;
  text-decoration: none;
  color: #2a231b;
  border-right: 1px solid rgba(42,35,27,.18);
  font-weight: 600;
}

nav a:last-child{
  border-right: none;
}

nav a:hover{
  background: rgba(42,35,27,.06);
  text-decoration: underline;
}

nav a.active{
  background: rgba(42,35,27,.15);
}

h1,
h2,
h3{
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .3px;
}

h1{
  font-size: 2rem;
  margin: 0;
}

.centered-title {
  text-align: center;
  position: relative;
  margin-bottom: 20px;
}

.centered-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin: 10px auto 0;
  background: #c9a646; /* soft gold tone */
  opacity: 0.7;
}

h2{
  font-size: 1.9rem;
  margin-top: 0;
}

main{
  max-width: 980px;
  margin: 28px auto 60px;
  padding: 0 18px;
}

main h2{
  text-align: center;
}

section{
  margin-bottom: 40px;
}

.section-card{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(42,35,27,.22);
  padding: 22px 22px;
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

footer{
  text-align: center;
  padding: 18px 0;
  margin-top: 60px;
  font-size: 14px;
  color: #3a3126;
  border-top: 1px solid rgba(42,35,27,.25);
  background: transparent;
}

footer .container{
  text-align: center;
}

.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

.site-emblem{
  display: block;
  margin: 0 auto 18px;
  max-width: 100px;
  height: auto;
}

.section-divider{
  width: 140px;
  height: 2px;
  margin: 18px auto 28px;
  background: linear-gradient(
    to right,
    transparent,
    #b79a5b,
    #d8c08a,
    #b79a5b,
    transparent
  );
}

/* Calendar */
.calendar-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #101a33;
}

.calendar-table th{
  background-color: #1f3c75;
  color: #ffd700;
  padding: 12px;
  text-align: left;
}

.calendar-table td{
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.calendar-table tr:hover{
  background-color: rgba(255,255,255,.05);
}

/* Public gallery */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 35px;
}

.gallery-item{
  background-color: #f8f1e2;
  padding: 12px;
  border: 1px solid #cbbfa6;
  box-shadow: 0 6px 12px rgba(0,0,0,.12);
}

.gallery-item img{
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.gallery-intro{
  max-width: 750px;
  margin-top: 10px;
  font-style: italic;
  color: #d4d4d4;
}

.caption{
  margin-top: 10px;
  font-size: 15px;
  text-align: center;
  color: #3a3126;
  font-style: italic;
}

/* Dashboard / cards / tiles */
.card{
  padding: 18px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,.65);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  margin-bottom: 18px;
}

.dash-head{
  display: flex;
  gap: 16px;
  align-items: center;
}

.dash-emblem{
  width: 72px;
  height: auto;
}

.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.tile{
  display: block;
  padding: 16px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255,255,255,.75);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.tile h2{
  margin: 0 0 6px 0;
}

.tile p{
  margin: 0;
}

.tile:hover{
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.note{
  font-size: 0.95em;
}

/* Contact form */
.contact-form{
  max-width: 500px;
}

.contact-form .field{
  margin-bottom: 15px;
}

.contact-form label{
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 8px;
  border: 1px solid #999;
  border-radius: 4px;
  font-family: inherit;
}

.contact-form button{
  padding: 10px 18px;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover{
  background-color: #1a252f;
}

.contact-form button:disabled{
  opacity: 0.8;
  cursor: not-allowed;
}

/* Button spinner */
#send-button{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#send-button .spinner{
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.5);
  border-top-color: rgba(255,255,255,1);
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
}

#send-button .spinner.is-visible{
  display: inline-block;
}

@keyframes spin{
  to{
    transform: rotate(360deg);
  }
}

/* Lodge banner */
.lodge-banner{
  width: 260px;
  height: auto;
  display: block;
  margin: 0 auto;
  animation: bannerWave 5s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes bannerWave{
  0%{
    transform: perspective(800px) rotateX(0deg);
  }

  25%{
    transform: perspective(800px) rotateX(4deg);
  }

  50%{
    transform: perspective(800px) rotateX(0deg);
  }

  75%{
    transform: perspective(800px) rotateX(-4deg);
  }

  100%{
    transform: perspective(800px) rotateX(0deg);
  }
}

/* Dashboard action buttons */
.dashboard-actions{
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 25px;
  flex-wrap: wrap;
}

.dashboard-actions a,
.dashboard-actions button{
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: #f4efe3;
  border: 1px solid #cbbfa4;
  text-decoration: none;
  color: #222;
  font-family: Georgia, "Times New Roman", serif;
  transition: all .2s ease;
  cursor: pointer;
}

.dashboard-actions a:hover,
.dashboard-actions button:hover{
  background: #e8dfc9;
  transform: translateY(-1px);
}

/* Backup cards */
.admin-backup-card,
.recent-backups-card{
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.backup-btn{
  display: inline-block;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

.backup-success{
  margin-top: 10px;
  font-size: 0.95rem;
}

.backup-list{
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.backup-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.06);
}

.backup-main{
  min-width: 0;
}

.backup-name{
  font-weight: 600;
  word-break: break-word;
}

.backup-meta{
  margin-top: 4px;
  font-size: 0.92rem;
  opacity: 0.78;
}

.backup-actions{
  flex-shrink: 0;
}

.backup-download-link{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  background: rgba(0,0,0,.08);
  color: inherit;
}

.backup-download-link:hover{
  background: rgba(0,0,0,.14);
}

.backup-empty{
  margin-top: 10px;
  opacity: 0.8;
}

/* Lightbox */
.lb{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 18px;
}

.lb.open{
  display: flex;
}

.lb-inner{
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 98vw;
  max-height: 96vh;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.lb-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,.38);
  color: #fff;
  border-radius: 12px 12px 0 0;
}

.lb-title{
  font-size: 1rem;
  line-height: 1.25;
  display: flex;
  gap: 10px;
  align-items: center;
}

.lb-actions{
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.lb-btn{
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  background: rgba(255,255,255,.14);
  color: #fff;
  text-decoration: none;
}

.lb-btn:hover{
  background: rgba(255,255,255,.24);
}

.lb-body{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  min-height: 0;
}

.lb-body img{
  max-width: 96vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 12px 36px rgba(0,0,0,.45);
  display: block;
}

.lb-nav{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lb-arrow{
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 30px;
  line-height: 54px;
  text-align: center;
}

.lb-arrow:hover{
  background: rgba(255,255,255,.24);
}

.lb-prev{
  left: 14px;
}

.lb-next{
  right: 14px;
}

#lightboxImage{
  max-width: 94vw;
  max-height: 74vh;
}

.lightbox-caption{
  font-size: 14px;
}

.lightbox-nav{
  width: 46px;
  height: 46px;
  font-size: 28px;
}

.lightbox-prev{
  left: 10px;
}

.lightbox-next{
  right: 10px;
}

.lightbox-close{
  top: 10px;
  right: 10px;
}

#lbCounter{
  margin-right: 14px;
  opacity: .75;
  font-size: .95em;
}

/* Photos page */
.photos-page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.page-header{
  text-align: center;
  margin-bottom: 22px;
}

.page-header h1{
  margin: 0 0 8px;
}

.page-subtitle{
  margin: 0;
  opacity: 0.8;
}

.back-link{
  display: inline-block;
  margin-bottom: 18px;
  text-decoration: none;
}

.photo-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.photo-card{
  margin: 0;
  background: rgba(255,255,255,.72);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.photo-card a{
  display: block;
  text-decoration: none;
}

.photo-card img{
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.photo-caption{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
}

.photo-title{
  font-weight: 700;
  line-height: 1.3;
}

.photo-date{
  font-size: 0.92rem;
  opacity: 0.75;
}

.empty-state{
  text-align: center;
  padding: 28px 16px;
  background: rgba(255,255,255,.72);
  border-radius: 18px;
}

.back-button{
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.75);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.back-button:hover{
  background: rgba(255,255,255,.95);
}

/* Divider */
.dashboard-divider{
  border-top: 1px solid #cfcfcf;
  margin: 34px 0 24px;
  text-align: center;
  position: relative;
  opacity: 0.6;
}

.dashboard-divider span{
  display: inline-block;
  background: #fff;
  padding: 0 12px;
  position: relative;
  top: -11px;
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

/* Generic buttons / misc */
.button{
  display: inline-block;
  padding: 12px 18px;
  background: #1f3a5f;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.button:hover{
  background: #2b4d78;
}

.tagline{
  font-style: italic;
  color: #555;
  margin-top: 6px;
  margin-bottom: 18px;
}

.cta{
  text-align: center;
  margin-top: 25px;
}

.heritage{
  font-size: 0.9rem;
  color: #777;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

/* Mobile */
@media (max-width: 640px){
  .photo img{
    height: 180px;
  }

  .lb{
    padding: 10px;
  }

  .lb-bar{
    padding: 10px 12px;
  }

  .lb-title{
    font-size: .95rem;
  }

  .lb-body img{
    max-width: 94vw;
    max-height: 76vh;
  }

  .lb-arrow{
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 24px;
  }

  .lb-prev{
    left: 8px;
  }

  .lb-next{
    right: 8px;
  }
}

.featured-links{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.featured-tile{
  display: block;
  padding: 18px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(42,35,27,.12);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.featured-tile:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
  background: rgba(255,255,255,.92);
  filter: brightness(1.03);
  border-color: rgba(42,35,27,.18);
}

.featured-tile .title{
  margin: 0 0 8px;
}

.featured-tile .desc{
  margin: 0;
  line-height: 1.5;
}

.tonight-card{
  margin-bottom: 18px;
  border-left: 4px solid rgba(160,130,60,.6);
}

.tonight-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:8px;
}

.tonight-heading{
  margin:0;
  font-size:1.45rem;
}

.tonight-edit-link{
  display:inline-block;
  padding:8px 12px;
  border-radius:10px;
  text-decoration:none;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(0,0,0,.10);
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  color:inherit;
}

.tonight-edit-link:hover{
  transform:translateY(-1px);
}

.event-title{
  font-size:1.2rem;
  font-weight:700;
  margin:8px 0 2px;
}

.event-time{
  font-size:.98rem;
  opacity:.85;
  margin:0 0 12px;
}

.event-details p{
  margin:4px 0;
}

.event-agenda{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(0,0,0,.08);
}

.event-agenda ul{
  margin:6px 0 0 18px;
}

.event-note{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(0,0,0,.08);
  opacity:.9;
}

.event-updated{
  margin-top:12px;
  font-size:.88rem;
  opacity:.68;
}

.upcoming-card{
  margin-bottom: 18px;
  border-left: 4px solid rgba(31,58,95,.45);
}

.upcoming-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.upcoming-heading{
  margin:0;
  font-size:1.4rem;
}

.upcoming-edit-link{
  display:inline-block;
  padding:8px 12px;
  border-radius:10px;
  text-decoration:none;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(0,0,0,.10);
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  color:inherit;
}

.upcoming-edit-link:hover{
  transform:translateY(-1px);
}

.upcoming-list{
  display:grid;
  gap:12px;
}

.upcoming-item{
  padding:12px 14px;
  border-radius:12px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(0,0,0,.07);
}

.upcoming-title{
  margin:0 0 4px;
  font-size:1.08rem;
  font-weight:700;
}

.upcoming-date{
  margin:0 0 6px;
  font-size:.96rem;
  opacity:.82;
}

.upcoming-note{
  margin:0;
  font-size:.95rem;
  line-height:1.45;
  opacity:.88;
}

.feature-tile .feature-title {
  margin-top: 0 !important;
}

.feature-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature-tile > *:first-child {
  margin-top: 0 !important;
}

.join-callout{
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,.70);
}

.join-callout h2{
  margin: 0 0 8px;
}

.join-callout p{
  margin: 0 0 10px;
}

.join-callout p:last-child{
  margin-bottom: 0;
}

.button{
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  background:#8a6a12;
  color:#fff;
  text-decoration:none;
  font-weight:600;
}

@media (max-width: 600px){
  .button{
    display:block;
    width:100%;
    text-align:center;
    margin-top:10px;
  }
}

@media (max-width: 600px){
  .container{
    padding: 0 14px;
  }

  .section-card,
  .card{
    padding: 16px;
  }

  h1{
    font-size: 26px;
  }

  h2{
    font-size: 20px;
  }
  
  /* Trestleboard PDF Admin Card */
.admin-card{
  border-left: 4px solid #c8a95b;
}

.pdf-checklist{
  margin: 10px 0 0;
  padding-left: 18px;
  line-height: 1.5;
}

.pdf-checklist li{
  margin-bottom: 6px;
}

.pdf-note{
  margin-top: 10px;
  font-size: 0.9em;
  color: #555;
  font-style: italic;
}
  
}

/* Trestleboard PDF Admin Card */
.card.admin-card{
  border-left: 4px solid #c8a95b !important;
  padding-left: 14px !important;
}

.card.admin-card .pdf-checklist{
  margin: 12px 0 0 !important;
  padding-left: 20px !important;
  line-height: 1.6 !important;
}

.card.admin-card .pdf-checklist li{
  margin-bottom: 8px !important;
}

.card.admin-card .pdf-note{
  margin-top: 12px !important;
  font-size: 0.9em !important;
  color: #555 !important;
  font-style: italic !important;
}

/* Admin tools card accent */
.admin-tools .card{
  border-left: 4px solid #c8a95b;
  padding-left: 14px;
}

/* Gold accent for Admin Tools tiles */
.tile.admin-tile{
  border-left: 4px solid #c8a95b !important;
  padding-left: 18px !important;
}