@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Lato:wght@400;700&display=swap");

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem;
}

.column img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
}

.column p {
  text-align: left;
  font-size: 1.2rem;
  line-height: 1.6;
}

.column {
  flex: 1;
  max-width: 400px;
  text-align: center;
}

.column img {
  width: 225px;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(61, 74, 42, 0.15);
  margin: 0 auto;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.column img:hover {
  transform: scale(1.04);
  border-color: rgba(53, 67, 33, 0.4);
}

#contact {
  margin-top: 10rem;
}

html {
  background-color: #faf6ef;
  background-image: url("images/sort-and-shine-background-desktop.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

main {
  width: min(960px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(28px, 4vw, 56px);
  background-color: rgba(250, 247, 240, 0.9);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(44, 44, 44, 0.08);
}

body {
  font-family: "Lato", sans-serif;
  color: #1c1e18;
  line-height: 1.6;
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  padding: 0.5rem;
}

.gallery-item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.2rem;
  justify-content: center;
  padding: 0.5rem;
}

.gallery-item img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(53, 67, 33, 0.25);
}

.gallery-item p {
  grid-column: 1 / -1;
}

.navbar {
  margin-bottom: 1.5rem;
  position: sticky;
  background-color: #3d4a2a;
  top: 0;
  padding: 0.75rem 1.5rem;
}

.navbar ul {
  display: flex;
  gap: 2rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar a {
  color: #faf6ef;
  text-decoration: none;
  font-weight: 700;
}

.navbar a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  color: #354321;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
}

p,
li {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  max-width: 65ch;
}

section {
  margin-top: 3rem;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 0.2rem;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: rgba(28, 30, 24, 0.85);
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  width: 90vw;
  height: 90vh;
  margin-top: 0;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-x {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: #faf6ef;
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
  z-index: 101;
}

.lightbox-x:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
  html {
    background-image: url("images/sort-and-shine-background-mobile.webp");
    background-attachment: scroll;
  }

  main {
    width: calc(100% - 32px);
    margin-top: 2.5rem;
    margin-bottom: 3rem;
  }

  .gallery-item {
    grid-template-columns: 1fr 1fr;
  }

  .navbar ul {
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }
}
