@charset "UTF-8";
/* CSS Document */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Raleway', sans-serif;
  background-color: white;
  color: #231F20;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* === iOS “GLASS” FIX: prevent Safari address bar shifting === */
.page-wrapper {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: white;
  z-index: 0;
}
/* =========================================================== */

header {
  text-align: center;
  margin: 2rem 0 1rem;
  font-weight: 600;
  position: relative;
  color: #231F20;
}

.main-site-link {
  position: absolute;
  left: 2rem;
  top: 0;
  font-size: 0.875rem;
  color: #231F20;
  text-decoration: none;
}
a.main-site-link {
  color: #231F20 !important;
  text-decoration: none !important;
}

.content-box {
  background-color: #F4EDE5;
  border-radius: 24px;
  padding: 3rem;
  margin: 2rem auto;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  min-height: 300px;
}

/* ----- SIMPLE ROW LAYOUT SYSTEM ----- */

.grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;v
  width: 100%;
  max-width: 900px;
}

/* Shared row styling */
.row-1, .row-2, .row-3 {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* 1 item = full width */
.row-1 .thumb {
  flex: 1 1 100%;
  max-width: 100%;
}

/* 2 items = 50% each */
.row-2 .thumb {
  flex: 1 1 calc(50% - 0.75rem);
}

/* 3 items = 33.3% each */
.row-3 .thumb {
  flex: 1 1 calc(33.333% - 1rem);
}

/* Responsive: stack on small screens */
@media screen and (max-width: 768px) {
  .row-1, .row-2, .row-3 {
    flex-direction: column;
  }
  .row-1 .thumb,
  .row-2 .thumb,
  .row-3 .thumb {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


.thumb {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.thumb:hover {
  outline: 6px solid white;
  transform: scale(1.02);
  border-radius: 12px;
}

/* === FIXED LOGO — GLASS-SAFE AND CROSS-BROWSER === */
footer .logo {
  position: fixed !important;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  z-index: 1000;
}

footer .logo img {
  display: block;
  width: clamp(100px, 35vw, 160px);
  height: auto;
  pointer-events: none; /* remove if clickable */
}
/* ================================================= */

/* --------------------- Video elements --------------------- */ 

video {
  filter: none;
  opacity: 1;
  outline: none;
}

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000; /* sits above logo */
}

.video-container {
  position: relative;
  max-width: 90%;
  max-height: 80%;
}

.video-container video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(0,0,0,0.5);
}

.video-container video {
  filter: none;
  opacity: 1;
  transition: none;
}

.video-container video:hover,
.video-container video:focus {
  filter: none;
  opacity: 1;
  outline: none;
}

.close-btn {
  position: absolute;
  top: -24px;
  right: -24px;
  background: #fff;
  border: none;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* --------------------- MOBILE OVERRIDES --------------------- */
@media screen and (max-width: 768px) {
  body {
    padding-bottom: 140px; /* keeps content above fixed logo */
  }

  footer .logo img {
    width: clamp(90px, 30vw, 140px);
    z-index: 100 !important;
  }

  .video-modal {
    z-index: 20000 !important; /* ensure pop-up covers logo */
  }
}
