.photography-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* --- Collections (Instagram-style highlights) --- */
.photography-collections {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding: 0.25rem 0 1.5rem;
}

.collection-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  max-width: 96px;
  text-decoration: none;
}

.collection-circle {
  width: 88px;
  height: 88px;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid var(--border-color);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.collection-item:hover .collection-circle {
  border-color: var(--accent-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.collection-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.collection-placeholder {
  background: var(--light-bg);
  color: var(--secondary-color);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.collection-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  color: var(--primary-color);
  text-align: center;
  line-height: 1.3;
}

/* --- Loading placeholders (skeleton shimmer) --- */
.photo-skeleton {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: rgba(128, 128, 128, 0.15);
}

.photo-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  animation: photo-shimmer 1.3s ease-in-out infinite;
}

.photo-skeleton-error {
  background-color: rgba(128, 128, 128, 0.3);
}

.photo-skeleton-error::after {
  display: none;
}

@keyframes photo-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.photo-row {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: flex-start;
}

.photo-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s;
}

.photo-card:hover {
  transform: scale(1.02);
}

.photo-img-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
  line-height: normal;
}

.photo-img-container:hover .photo-overlay {
  opacity: 1;
}

.overlay-metadata, .overlay-keywords {
  margin: 2px 0;
  font-size: 0.85em;
}

.photo-info {
  padding: 10px;
}

.photo-desc {
  margin: 0 0 8px 0;
  font-size: 0.9em;
  font-weight: bold;
}

.photo-meta {
  font-size: 0.8em;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  background: var(--light-bg);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.75em;
  color: var(--secondary-color);
}

/* --- Lightbox overlay --- */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 24px;
  cursor: zoom-out;
  animation: photo-lightbox-fade 0.2s ease;
}

.lightbox-figure {
  max-width: 90%;
  max-height: 92%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  background: var(--light-bg);
}

.lightbox-caption {
  width: 100%;
  padding: 12px 18px;
  text-align: center;
  box-sizing: border-box;
  color: var(--text-color);
  line-height: 1.5;
}

.lightbox-desc {
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.lightbox-meta,
.lightbox-keywords {
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin: 2px 0;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

@keyframes photo-lightbox-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .photo-lightbox {
    padding: 12px;
  }

  .lightbox-desc {
    font-size: 0.95rem;
  }

  .lightbox-meta,
  .lightbox-keywords {
    font-size: 0.78rem;
  }
}
