
@font-face {
  font-family: mainFont; /* set name */
  src: url('fonts/VercettiRegular/OpenType WOFFs/Vercetti-Regular.woff'); /* url of the font */
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: mainFont, sans-serif;
  font-size: 24px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  height: 100vh;

}

/* default: 4 columns */
.column {
  flex: 0 0 calc(25%);
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.column::-webkit-scrollbar {
  display: none;
}

.photo-card {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.photo-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.photo-card:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical */
  align-items: center;     /* horizontal */
  text-align: center;
  padding: 1rem;
  color: white;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.2),
    transparent
  );
}

.overlay h3,
.overlay p {
  margin: 0;
}

.overlay h3 {
  font-size: 2.6rem;
}

.overlay p {
  font-size: 1.3rem;
}

/* 3 columns */
@media (max-width: 1100px) {
    .column {
        flex: 0 0 calc(33.333% - 0.67rem);
    }
}

/* 2 columns */
@media (max-width: 800px) {
  .column {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

/* 1 column */
@media (max-width: 500px) {
    .photo-grid {
    height: auto;
    }

    .column {
    flex: 0 0 100%;
    height: 100vh;
    }

    .overlay h3 {
    font-size: 3rem;
    }

    .overlay p {
    font-size: 1.6rem;
    }
}


