.contact {
  position: fixed;
  bottom: 1.2rem;
  right: 1.5rem;
  font-family: 'Cardo', serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #000;
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.3s;
}

.contact:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .contact {
    right: 50%;
    transform: translateX(50%);
  }
}

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

body {
  font-family: 'Cardo', serif;
  background: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Centering wrapper — flex so image-wrap sits at center */
.page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shared title styles */
.title {
  font-family: 'Cardo', serif;
  font-weight: 300;
  font-size: clamp(1.25rem, 4.5vw, 2.25rem);
  letter-spacing: 0.55em;
  white-space: nowrap;
  line-height: 1;
}

/* Black title: absolutely centered in .page, sits behind image */
.title--black {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  z-index: 0;
}

/* Image wrapper: clips the white title to image bounds */
.image-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  z-index: 1;
}

.image-wrap img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transition: transform 1.8s cubic-bezier(0.25, 0.1, 0.1, 1);
}

.image-wrap:hover img {
  transform: scale(1.04);
}

/* White title: centered inside the image, clipped by overflow:hidden */
.title--white {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  z-index: 2;
}
