.gallery-paper {
  background: rgba(255, 255, 255, 0.65); 
  backdrop-filter: blur(10px); 
  border-radius: 24px;
  padding: 32px 32px 20px 32px; 
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 10px 40px rgba(58, 39, 23, 0.05), 
    inset 0 0 0 1px rgba(255, 255, 255, 0.5); 
}

.gallery-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
  margin-bottom: 30px;
}

.gallery-card-simple {
  display: flex;
  flex-direction: column;
  gap: 12px; 
}

.gallery-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 2.8; 
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(58, 39, 23, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #e0e0e0; 
  cursor: pointer;
}

.gallery-img-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(58, 39, 23, 0.22);
}

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

.gallery-caption {
  text-align: center;
  font-size: 15px;
  color: #5d4d3d; 
  font-weight: 600; 
  padding: 0 4px;
  line-height: 1.4;
}

.gallery-pagination {
  padding-top: 10px;
  border-top: 1px solid rgba(58, 39, 23, 0.06); 
  margin-top: 10px;
}

.gallery-pagination.pager-premium {
  margin: 10px 0 0;
}

@media (max-width: 900px) {
  .gallery-grid-layout {
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (max-width: 600px) {
  .gallery-paper {
    padding: 20px; 
  }
  .gallery-grid-layout {
    grid-template-columns: 1fr; 
    gap: 30px;
  }
}
