.portfolio-container {
  max-width: 2500px;
  margin: auto;
}

.portfolio-heading-1 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 4rem;
  color: #554740;
  letter-spacing: .1rem;
  font-weight: bolder;
}

.portfolio-heading-2 {
  font-size: 3rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 4rem;
  color: #554740;
}

.portfolio-text {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 2rem;
  width: 65%;
  margin: auto;
  font-weight: 500;
  margin-bottom: 6rem;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.instagram-button {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.instagram-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 39, 67, 0.3);
}

.contact-button {
  background: #63534b;
  color: white;
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 83, 75, 0.3);
  background: #7a6b63;
}

.cta-button i {
  font-size: 1.3rem;
}


.gap {
  height: 3rem;
}

.photo-grid {
    width: 80%;
    display: grid;
    gap: .4rem;
    grid-template-columns: repeat(auto-fit, minmax(23%, 1fr));
    grid-auto-rows: 1fr;
    grid-auto-flow: row dense;
    margin: auto;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    transition: all 500ms;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    box-shadow: rgba(3, 8, 20, 0.1) 0px 0.15em 0.5em, rgba(2, 8, 20, 0.1) 0px 0.075em 0.175em;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: rgba(2, 8, 20, 0.1) 0px 0.35em 1.175em, rgba(2, 8, 20, 0.08) 0px 0.175em 0.5em;
}

.card:hover img {
    transform: scale(1.05);
}

/* Make lightbox links fill the entire card and be clickable */
.card a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    z-index: 1;
}

.card-tall {
  grid-row: span 2 / auto;
}

.card-wide {
  grid-column: span 2 / auto;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
}

}

