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

html, body {
  width: 100%;
  min-height: 100%;
  background: #111111;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

/* HEADER */

.site-header {
  height: 85px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #ffffff;
  text-decoration: none;
}

.brand-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 3px;
}

.brand-subtitle {
  font-size: 9px;
  letter-spacing: 4px;
  color: #999999;
}

.contact-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 2px;
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.55;
}

/* PHOTO GALLERY */

.gallery {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 65px;
}

.photo-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#hero-image {
  display: none;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.image-placeholder {
  color: #777777;
  font-size: 10px;
  letter-spacing: 3px;
  text-align: center;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 30px;
  font-weight: 200;
  cursor: pointer;
  padding: 20px;
  transition: opacity 0.2s;
}

.nav-arrow:hover {
  opacity: 0.45;
}

.previous {
  left: 12px;
}

.next {
  right: 12px;
}

.gallery-footer {
  min-height: 55px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#photo-counter {
  color: #888888;
  font-size: 10px;
  letter-spacing: 2px;
}

/* THUMBNAIL FILMSTRIP */

.thumbnail-strip {
  width: 100%;
  min-height: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 5%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #555555 #111111;
}

.thumbnail {
  flex: 0 0 72px;
  width: 72px;
  height: 58px;
  object-fit: cover;
  opacity: 0.45;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}

.thumbnail:hover {
  opacity: 0.8;
}

.thumbnail.active {
  opacity: 1;
  border: 1px solid #ffffff;
}

/* CONTACT PAGE */

.contact-main {
  flex: 1;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.contact-main h1 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 5px;
  margin-bottom: 24px;
}

.contact-main p {
  color: #999999;
  font-size: 13px;
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 28px;
}

.email-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: opacity 0.2s;
}

.email-link:hover {
  opacity: 0.55;
}

.contact-footer {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  font-size: 9px;
  letter-spacing: 2px;
}

/* MOBILE */

@media (max-width: 600px) {
  .site-header {
    height: 70px;
    padding: 0 20px;
  }

  .brand-name {
    font-size: 12px;
  }

  .gallery {
    padding: 0 35px;
  }

  .nav-arrow {
    font-size: 24px;
    padding: 8px;
  }

  .previous {
    left: 0;
  }

  .next {
    right: 0;
  }

  .thumbnail-strip {
    min-height: 78px;
    gap: 7px;
    padding: 10px 20px;
  }

  .thumbnail {
    flex-basis: 60px;
    width: 60px;
    height: 50px;
  }
}



/* PHOTO FRAME */

.photo-frame {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-content {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  line-height: 0;
}

/* SIGNATURE - FULLSCREEN ONLY */

.fullscreen-signature {
  display: none;
}

/* Fullscreen photo frame */

.photo-frame:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: #111111;
}

.photo-frame:fullscreen .photo-content {
  max-width: 100vw;
  max-height: 100vh;
}

.photo-frame:fullscreen #hero-image {
  max-width: 100vw;
  max-height: 100vh;
}

/* Position signature relative to the actual photograph */

.photo-frame:fullscreen .fullscreen-signature {
  display: block;
  position: absolute;
  right: 3%;
  bottom: 3%;
  width: 140px;
  max-width: 20%;
  height: auto;
  opacity: 0.75;
  pointer-events: none;
}

/* Keep signature hidden during normal browsing */
.fullscreen-signature {
  display: none !important;
}

/* Only show signature in fullscreen */
.photo-frame:fullscreen .fullscreen-signature {
  display: block !important;
}

/* MOBILE FULLSCREEN VIEWER */

.mobile-fullscreen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #111111;
  align-items: center;
  justify-content: center;
}

.mobile-fullscreen.open {
  display: flex;
}

#mobile-fullscreen-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.mobile-fullscreen-signature {
  position: absolute;
  right: 5%;
  bottom: 5%;
  width: 120px;
  max-width: 25%;
  height: auto;
  opacity: 0.75;
  pointer-events: none;
}

.fullscreen-close {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 2;
  background: transparent;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  padding: 10px;
}