/* --- Photo Grid, Cards, and Lightbox Styles (Mainly for Desktop) --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

.photo-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.05);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--color-white);
  padding: 0.75rem;
  font-size: 0.875rem;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.photo-card:hover .photo-caption {
  transform: translateY(0);
}

.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.5s;
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1000px;
  animation: zoomIn 0.5s;
}

#lightbox-caption {
  text-align: center;
  color: #ccc;
  padding: 10px 20px;
  height: 150px;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
}

@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@keyframes zoomIn {
    from {transform: scale(0.8);}
    to {transform: scale(1);}
}

/* --- Shared Album Header and Animation Styles --- */
.album-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-green-200);
  padding-bottom: 0.5rem;
}

.album-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-gray-800);
  margin: 0;
}

.album-date {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-gray-500);
  flex-shrink: 0; 
  margin-left: 1rem;
}

.album-description {
    font-size: 1rem;
    color: var(--color-gray-600);
    text-align: center;
    max-width: 100%;
    margin: -0.75rem auto 1.5rem auto;
}

.album-wrapper {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.album-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Desktop Photo Card Animation --- */
@media (min-width: 768px) {
  .photo-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease;
  }
  .photo-card.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  }
}

/* --- Swiper Mobile Styles --- */
@media (max-width: 767px) {
  .photo-grid {
    display: none;
  }
  .swiper {
    width: 100%;
    /* You can adjust this height */
    height: 50vh; 
    border-radius: 0.5rem;
  }
  .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Change the color of the navigation arrows (next/prev) */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-white) !important;
}

/* Change the color of the active pagination dot */
.swiper-pagination-bullet-active {
    background: var(--color-white) !important;
}