@import "standard.css";
/* Baby photo gallery */
.baby-photos {
  /*display: flex;
  flex-wrap: wrap;
  gap: 1rem;*/
  list-style-type: none;
  padding: 0;
}
/*.baby-photos::after {
  content: "";
  flex: auto;
}
.baby-photos li {
  flex: 1 1 150px;
}*/
.photo-gallery-wrapper {
    text-align: center;
}
.baby-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.baby-photos img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.baby-photos img:hover {
  transform: scale(1.05);
}
.photo-date {
    text-align: center;
    display: block;
    margin-top: .5rem;
    font-weight: lighter;
    margin-bottom: .5rem;
    opacity: .8;
    font-size: .8rem;
}
.sort-toggle {
    background-color: var(--pinkMid);
    border-radius: 10px;
    border: none;
    box-shadow: 3px 3px 5px 3px rgba(0, 0, 0, .5);
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 1em;
    padding: .5rem;
    transition: .2s;
}
.sort-toggle:hover {
  background-color: var(--pinkDark);
}
/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* Close and navigation buttons */
.lightbox-close,
.lightbox-next,
.lightbox-prev {
  position: absolute;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.lightbox-close {
  top: 20px;
  right: 30px;
}

.lightbox-next,
.lightbox-prev {
  top: 50%;
  transform: translateY(-50%);
  padding: 10px;
  border-radius: 50%;
}

.lightbox-next:hover,
.lightbox-prev:hover,
.lightbox-close:hover {
  color: var(--comp1);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media only screen and (max-width: 2400px) {
  article {
    width: 80%;
  }
}
@media only screen and (max-width: 560px) {
  h1 {
    margin-top: 3rem;
  }
}