.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--content-padding);
  width: 100%;
}

.album {
  border: 1px solid var(--color-light);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.album:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.album-cover {
  position: relative;
  padding-bottom: 66.67%;
  background: var(--color-light);
}

.album-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-content {
  padding: var(--content-padding);
}

.album-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.album-info {
  color: var(--color-text-grey);
  font-size: 0.875rem;
}

.album-description {
  margin-top: 1rem;
  line-height: 1.5;
}

.album-text {
  max-width: 100%;
  margin: 0 0 3rem 0;
  line-height: 1.6;
}

.album-images {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.album-image {
  margin: 0;
}

.album-image img {
  width: 100%;
  height: auto;
  display: block;
}

.album-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
  text-align: left;
  padding: 0 1rem;
}

/* Album styles */
article {
  padding-top: 4.5rem; /* Space for the fixed breadcrumb */
}

.album-content {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--content-padding) * 2);
  margin-bottom: var(--content-padding);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--content-padding);
  width: 100%;
}

.gallery-item {
  position: relative;
  padding-bottom: 66.67%;
  background: var(--color-background);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

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

/* Artworks container */
.artworks-container {
  width: 100%;
  padding-top: 4.5rem; /* Increased space for the fixed breadcrumb since it's now outside */
}

.artworks-container .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem; /* Slightly larger gap for better spacing */
  list-style: none;
  padding: 0;
  margin: 0;
}

.artworks-container .grid-item {
  margin-bottom: 0; /* Remove margin since we're using gap */
}

.artworks-container .grid-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.artworks-container .grid-item figure {
  margin: 0;
  position: relative;
  overflow: visible; /* Changed from hidden to visible to allow caption to show */
  transition: transform 0.2s ease;
  background-color: var(
    --color-background
  ); /* Add background color for images that are loading */
}

.artworks-container .img {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1/1; /* Moved aspect-ratio here from figure */
}

.artworks-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the entire square */
  display: block;
  transition: transform 0.3s ease;
}

.artworks-container .img-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text);
  display: block; /* Ensure it's displayed as a block */
  text-align: left;
}

/* News item styles */
.news-item-full {
  padding-top: 4.5rem; /* Space for the fixed breadcrumb */
}

@media screen and (max-width: 1800px) {
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .album-grid,
  .gallery-grid,
  .artworks-container .grid {
    grid-template-columns: 1fr;
    gap: calc(var(--content-padding) * 2);
  }

  .album-cover,
  .gallery-item {
    padding-bottom: 66.67%;
  }
}
