/* === RESET === */
html, body {
  margin: 0;
  padding: 0;
  background: #000;      /* black background across the page */
  color: #999;           /* medium-gray text for readability */
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TOP BAR (Black Bar for Homepage) === */
.social-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  background-color: #000;
}

.social-left img {
  width: 29px; /* reduced by 50% */
  height: auto;
  filter: brightness(0) invert(1); /* white logo */
  transition: transform 0.3s ease;
}

.social-left img:hover {
  transform: scale(1.05);
}

.social-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px; /* close spacing between icons */
}

.social-right img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  cursor: pointer;
  filter: brightness(0) invert(1); /* white icons */
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.social-right img:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

/* === HEADER === */
.site-header {
  text-align: left;
  background: #000;      /* match the rest of the page */
  padding: 2rem 3rem;
  margin-bottom: 0;
}

.site-header .title-block h1 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  color: #E4E4E4;        /* lighter gray for headline */
  margin: 0 0 0.3rem 0;
}

.site-header .title-block p {
  font-size: 1rem;
  line-height: 1.3;
  color: #E4E4E4        /* medium-light gray for subtext */
  margin-top: 0;
}

.site-header .title-block p {
  font-size: 1rem;
  line-height: 1.3;
  color: #E4E4E4;
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* extra safety for narrow screens */
@media (max-width: 600px) {
  .site-header .title-block p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* === HERO VIDEO === */
.hero-video {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-video video {
  width: 100%;
  height: auto;
  max-height: 100vh;
  display: block;
  object-fit: cover;
  object-position: center center;
  border: none;
  background: #000;
}

/* Fix for iOS Safari viewport changes */
@supports (-webkit-touch-callout: none) {
  .hero-video video {
    min-height: 100%;
    max-height: none;
  }
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
  .hero-video {
    width: 100vw;
    height: auto;
  }
  .hero-video video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  .hero-video {
    height: auto;
  }
  .hero-video video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* === SMART GALLERY === */
.smart-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 0;
  background-color: #000;
}

.tile {
  position: relative;
  overflow: hidden;
  background-color: #000;
}

.tile img,
.tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile.text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background-color: #000;
  color: #fff;
  padding: 2rem;
}

.tile.text h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.tile.text p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.5;
}

/* Video hover */
.tile video {
  transition: opacity 0.5s ease;
}

.tile:hover video {
  opacity: 0.8;
}

/* Fade-in text tiles */
.fade-in {
  animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Aspect-ratio variations */
.tile.wide {
  grid-column: span 2;
}

.tile.tall {
  grid-row: span 2;
}

/* Responsive gallery grid */
@media (max-width: 900px) {
  .smart-gallery {
    grid-template-columns: repeat(auto-fill, minmax(33.33%, 1fr));
  }
}

@media (max-width: 600px) {
  .smart-gallery {
    grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
  }
}

/* === FOOTER (Black Bar) === */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000 !important; /* black bar */
  padding: 5rem 3rem 1.5rem 3rem;
  border: none;
  margin-top: 3;
}

.footer-left img {
  width: 29px; /* match reduced logo size */
  height: auto;
  filter: brightness(0) invert(1); /* white logo */
  transition: transform 0.3s ease;
}

.footer-left img:hover {
  transform: scale(1.08);
}

.footer-right-group {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-text {
  font-size: 0.9rem;
  color: #fff; /* white text on black bar */
  white-space: nowrap;
  text-align: right;
}

.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px; /* tighter icons on bottom bar */
}

.footer-right img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  cursor: pointer;
  filter: brightness(0) invert(1); /* white icons */
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.footer-right img:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

/* Responsive footer */
@media (max-width: 900px) {
  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
  }

  .footer-right-group {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-right { gap: 25px; }

  .footer-left img { width: 25px; }

  .footer-text {
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* === Icon consistency === */
.social-right img,
.footer-icons img,
.footer-right img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.social-right img:hover,
.footer-icons img:hover,
.footer-right img:hover {
  opacity: 0.7;
  transform: scale(1.1);
}
/* === GALLERY HOVER OVERLAY === */
.tile {
  position: relative;
  overflow: hidden;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.3s ease;
  z-index: 2;
  pointer-events: none;  /* ✅ lets clicks pass through to the link */
}

.tile:hover::after {
  background: rgba(128, 128, 128, 0.25);
}
