/* Header & filters */
.photo-gallery-header-section {
  background-color: #f8f9fa;
}

.photo-gallery-header-section .form-label {
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.photo-gallery-header-section .btn-primary {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* Results grid */
.photo-gallery-results .card {
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}
.photo-gallery-results .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Image sizing */
.photo-gallery-results .card-img-top {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
}

/* Body text spacing */
.photo-gallery-results .card-body p {
  line-height: 1.3;
}
.photo-gallery-results .card-body .card-title {
  margin-bottom: 0.25rem;
}

/* Photo gallery detail page styles - styled to match original */
.original-style-gallery {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 1.667rem;
}

.original-style-gallery .gallery-item {
  position: relative;
  overflow: hidden;
  width: calc(33.333% - 1.111rem);
  opacity: 1;
}

.original-style-gallery .gallery-item a {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* Square aspect ratio like original */
  text-decoration: none;
  overflow: hidden;
}

.original-style-gallery .gallery-item a::after {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #282828;
  opacity: 0;
  transition: 0.35s ease 0s;
  z-index: 1;
  content: '';
}

.original-style-gallery .gallery-item a:hover::after,
.original-style-gallery .gallery-item a:focus::after {
  opacity: 0.6;
}

.original-style-gallery .gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.original-style-gallery .gallery-item .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2rem;
  height: 2rem;
  opacity: 0;
  transition: 0.35s ease 0s;
  z-index: 2;
}

.original-style-gallery .gallery-item .overlay svg {
  width: 100%;
  height: 100%;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  color: #FFFFFF;
}

.original-style-gallery .gallery-item a:hover .overlay {
  opacity: 1;
}

/* Responsive breakpoints to match original */
@media screen and (max-width: 800px) {
  .original-style-gallery .gallery-item {
    width: calc(50% - 0.833rem);
  }
}

@media screen and (max-width: 500px) {
  .original-style-gallery {
    gap: 1rem;
  }
  .original-style-gallery .gallery-item {
    width: 100%;
  }
}
