* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --footer-height: 101px;
  --footer-height-mobile: 57px;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Merriweather', Georgia, serif;
}

/* Slideshow */
.slideshow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--footer-height);
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
}

/* Prevent long-press context menu on mobile */
.slideshow,
.slide,
.slide img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.slide img {
  pointer-events: none;
}

/* Alt Text Banner */
.alt-banner {
  position: fixed;
  bottom: var(--footer-height);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  min-height: 56px;
  background: rgba(255, 255, 255, 0.85);
  color: #000;
  padding: 14px 24px 11px;
  font-size: 14px;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.alt-banner-text {
  display: block;
  line-height: 1.5;
}

.alt-banner.visible {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .slideshow {
    bottom: var(--footer-height-mobile);
  }

  .slide img {
    object-position: var(--focal-mobile, var(--focal, 50% 50%));
  }

  .alt-banner {
    bottom: var(--footer-height-mobile);
    min-height: 52px;
    padding: 15px 16px 27px;
    font-size: 13px;
  }
}

/* Navigation Arrows */
.arrow {
  position: fixed;
  top: calc(50% - 50px);
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
  opacity: 0.7;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.arrow:hover {
  opacity: 1;
}

.arrow svg {
  width: 48px;
  height: 48px;
  stroke: #000;
  stroke-width: 1;
  fill: none;
}

.arrow-prev {
  left: 10px;
}

.arrow-next {
  right: 10px;
}

/* Footer */
site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 18px;
}

.logo-icon {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: #666;
  font-size: 16px;
  transition: color 0.2s;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: #000;
  opacity: 0;
  transition: opacity 0.4s;
}

.nav a:hover {
  color: #000;
}

.nav a:hover::after {
  opacity: 1;
}

.social {
  display: flex;
  gap: 16px;
  margin-right: 16px;
}

.social a {
  color: #666;
  transition: color 0.2s;
}

.social a:hover {
  color: #000;
}

.social svg {
  width: 20px;
  height: 20px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #666;
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

.hamburger .hamburger-icon,
.hamburger .close-icon {
  transition: opacity 0.2s ease;
}

.hamburger .close-icon {
  display: none;
}

.footer.menu-open .hamburger .hamburger-icon {
  display: none;
}

.footer.menu-open .hamburger .close-icon {
  display: block;
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.mobile-menu.open .mobile-menu-bottom {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-social {
  display: flex;
  gap: 24px;
}

.mobile-menu-social a {
  color: #666;
}

.mobile-menu-social svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.mobile-menu-link {
  text-decoration: none;
  color: #666;
  font-size: 20px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav,
  .social {
    display: none;
  }

  .hamburger {
    display: block;
    position: relative;
    z-index: 2;
  }

  .footer {
    padding: 12px 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: flex-start;
  }

  .footer.menu-open {
    transform: translateY(var(--menu-offset, 0));
  }

  .mobile-menu {
    display: flex;
    height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .footer-left {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo {
    font-size: 16px;
  }

  .arrow {
    padding: 12px;
  }
}

/* ========================================
   Contact Page Styles
   ======================================== */

html:has(.page-contact),
html:has(.page-contact) body {
  height: auto;
  overflow: auto;
}

.page-contact {
  padding-bottom: var(--footer-height);
}


/* Map Container */
.map-container {
  width: 100%;
  height: 450px;
  background: #f5f5f5;
}

#map {
  width: 100%;
  height: 100%;
}

#map img[alt="Google"] {
  opacity: 0.5;
}

/* Contact Section */
.contact-section {
  flex: 1;
  padding: 80px 120px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* Contact Info (Left Column) */
.contact-info {
  padding-right: 24px;
}

.contact-heading {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #3d9be9;
  margin-bottom: 24px;
}

.contact-description {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 48px;
}

.contact-details {
  margin-top: 48px;
}

.contact-details p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.contact-details a {
  color: #333;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Contact Form (Right Column) */
.contact-form-wrapper {
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group-row {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.form-sublabel {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.required {
  font-style: italic;
  color: #888;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-group input,
.form-group textarea {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #333;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 18px 48px;
  background: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  align-self: flex-start;
}

.submit-btn:hover {
  background: #000;
}

/* Contact Page Mobile Styles */
@media (max-width: 1024px) {
  .contact-section {
    padding: 80px 48px;
  }
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }

  .contact-section {
    padding: 48px 24px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info {
    padding-right: 0;
  }

  .contact-heading {
    font-size: 24px;
  }

  .contact-description {
    margin-bottom: 32px;
  }

  .contact-details {
    margin-top: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .submit-btn {
    width: 100%;
  }

  .page-contact {
    padding-bottom: var(--footer-height-mobile);
  }
}

/* ========================================
   Gallery View Styles
   ======================================== */

.gallery-view {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

.gallery-view.open {
  transform: translateY(0);
}

/* Gallery Header (sticky) */
.gallery-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 210;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.gallery-header .nav {
  display: flex;
  gap: 24px;
}

.gallery-header .nav a {
  text-decoration: none;
  color: #666;
  font-size: 16px;
  transition: color 0.2s;
  position: relative;
}

.gallery-header .nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: #000;
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-header .nav a:hover {
  color: #000;
}

.gallery-header .nav a:hover::after {
  opacity: 1;
}

.gallery-header .social {
  display: flex;
  gap: 16px;
  margin-right: 16px;
}

.gallery-header .social a {
  color: #666;
  transition: color 0.2s;
}

.gallery-header .social a:hover {
  color: #000;
}

.gallery-header .social svg {
  width: 20px;
  height: 20px;
}

.gallery-close {
  cursor: pointer;
}

/* Gallery Content */
.gallery-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 80px 48px 80px 80px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Gallery Info (Left Column) */
.gallery-info {
  position: sticky;
  top: 180px;
  align-self: start;
}

.gallery-heading {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #3d9be9;
  margin-bottom: 24px;
}

.gallery-description {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

/* Hide slideshow elements when gallery is open */
body.gallery-open .slideshow,
body.gallery-open .arrow,
body.gallery-open .alt-banner,
body.gallery-open site-footer {
  pointer-events: none;
}

/* Gallery Mobile Styles */
@media (max-width: 1024px) {
  .gallery-content {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    gap: 32px;
  }

  .gallery-info {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-header {
    padding: 12px 16px;
  }

  .gallery-header .nav,
  .gallery-header .social {
    display: none;
  }

  .gallery-content {
    padding: 32px 16px;
    gap: 24px;
  }

  .gallery-heading {
    font-size: 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-item {
    aspect-ratio: 1;
  }
}
