@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/OpenSans-Regular.woff2') format('woff2');
  unicode-range: U+000-5FF; /* Latin */
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/OpenSans-Bold.woff2') format('woff2');
  unicode-range: U+000-5FF;
}

:root {
  --primary-blue: #166998;
  --background: #f7f3e3;
}
html {
  line-height: 1.4;
	height: 100%;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: var(--background);
	display: flex;
  flex-direction: column;
  height: 100%;
}
main {
  flex: 1 0 auto;
}
.hero-img {
  max-width: 450px;
  height: auto;
  width: 100%;
}
.lead {font-size: 1rem;}

.btn-primary {
  width: 152px;
  height: 52px;
  font-size: 16px;
  border-radius: 6px;
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #50a4c9;
  border-color: #50a4c9;
}
h1 {
	margin-top: 0;
	margin-bottom: .5rem;
	font-weight: 600;
	line-height: 1.2;
	color: inherit;
}

.h3, h3 {
	font-size: 1.5rem;
}

.spacer-30 {height:30px;}

.scrapbook-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 0;
}

.scrapbook-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.scrapbook-card {
  width: 300px;                /* Ensures all cards are same width */
  background: white;
  border: 3px solid var(--primary-blue);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  text-decoration: none;
  color: #333;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scrapbook-card img {
  width: 100%;                 /* Fill card width */
  height: 200px;               /* Fixed height */
  object-fit: cover;           /* Crops image without distortion */
  border-radius: 4px;
  margin-bottom: 0.5rem;
  display: block;
}

.scrapbook-card:hover {
  transform: scale(1.03);
}

.scrapbook-card h3 {
  margin: 0.3rem 0;
  font-weight: 600;
  color: var(--bs-body-color);
}

.photo-gallery {
  position: relative; /* Required for absolute positioning */
}

.photo-card {
  position: absolute; /* JS places elements */
  width: 250px;       /* Fixed column width */
}

.photo-card img,
.photo-card video {
  width: 100%;
  border-radius: 6px;
  border: 2px solid var(--primary-blue);
  box-shadow: 2px 2px 5px rgba(0,0,0,0.15);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.btn-back {
  background-color: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-back:hover,
.btn-back:focus {
  background-color: #50a4c9;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.image-modal img {
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 85%;
  border: 4px solid white;
  border-radius: 8px;
  pointer-events: none;
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .photo-card { flex: 1 1 calc(33.33% - 1rem); }
}
@media (max-width: 900px) {
  .photo-card { flex: 1 1 calc(50% - 1rem); }
}

/* mobile view - one column */
@media (max-width: 768px) {
  .scrapbook-row {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .photo-card { flex: 1 1 100%; }
}


