.collections {
  margin: 95px auto 0 0;
}
#collections-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, 350px);
  gap: 20px;
  padding: 0;
  list-style: none;
  justify-content: center;
}

/* square collection card with 3-shot preview */
.collection-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #121212;
  aspect-ratio: 1/1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  max-width: 350px;
  width: 100%;
  cursor: pointer; /* Added to indicate clickable card */
}
.collection-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6);
}
.collection-preview {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.collection-preview-left {
  flex: 2;
}

.collection-preview-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.collection-preview-right img {
  height: calc((100% - 8px) / 2);
}

.collection-meta {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  gap: 8px;
  border-radius: 8px;
  background-color: rgba(6, 10, 8, 0.36);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.collection-title {
  color: #ffffff;
  font-family: Rajdhani, Arial, sans-serif;
  margin: 0;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* (removed .collection-open — button no longer used) */

/* controls layout and full-collection button */
.collection-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.collection-full {
  padding: 6px 10px;
  border-radius: 8px;
  border: solid 1px #88fa6f10;
  background-color: #44d62c15;
  color: #ffffffbb;
  text-decoration: none;
  font-family: Rajdhani, Arial, sans-serif;
  transition: 0.3s ease-in-out;
}
.collection-full:hover {
  background-color: #44d62c20;
  color: #44d62c;
  transition: 0.3s ease-in-out;
}

@media screen and (max-width: 627px) {
  .collections {
    margin: auto 0;
    padding: 0 20px;
  }
  #collections-list {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    padding: 0;
  }

  /* Stack preview on small screens: large top image, two smaller images below side-by-side */
  .collection-preview {
    flex-direction: column;
  }
  .collection-preview-left {
    flex: initial;
    width: 100%;
  }
  .collection-preview-right {
    flex: initial;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
  }
  .collection-preview-right img {
    width: 50%;
    height: auto;
    object-fit: cover;
  }

  .collection-meta {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 6px 8px;
  }
  .collection-title {
    font-size: 14px;
  }
}
