/* === Dandyscope Unified Gallery Theme Styles === */

/* ============================
   GRID LAYOUTS (Homepage / Collections / Boutique)
============================= */
.gallery-grid,
.collections-grid {
  column-count: 3;
  column-gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

@media (max-width: 1024px) {
  .gallery-grid,
  .collections-grid {
    column-count: 2;
  }
}
@media (max-width: 640px) {
  .gallery-grid,
  .collections-grid {
    column-count: 1;
  }
}

.gallery-item,
.collection-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover,
.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}


/* ============================
   THUMBNAIL + HOVER EFFECTS
============================= */
.gallery-thumb,
.collection-thumb {
  position: relative;
  display: block;
}

.gallery-thumb img,
.collection-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-thumb:hover img,
.collection-thumb:hover img {
  transform: scale(1.03);
}

.gallery-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem;
}

.gallery-thumb:hover .gallery-hover {
  opacity: 1;
}

.gallery-icons {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

.gallery-icon {
  background: #fff;
  color: #000;
  padding: 0.4rem 0.6rem;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease, color 0.3s ease;
}

.gallery-icon:hover {
  background: #000;
  color: #fff;
}

.gallery-person {
  color: #fff;
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ============================
   COLLECTION CARD
============================= */
.collection-meta {
  padding: 1rem;
}

.collection-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.5rem;
}

.collection-description {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.collection-count {
  font-size: 0.8rem;
  color: #999;
}

/* ============================
   SINGLE DOWNLOAD PAGE
============================= */
.single-download-wrapper {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.download-left,
.download-right {
  flex: 1 1 45%;
}

.download-left img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.download-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.download-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 2rem;
}

.download-options label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.download-options select {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1.2rem;
}

.edd-add-to-cart {
  display: inline-block;
  background-color: #222;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.edd-add-to-cart:hover {
  background-color: #000;
}

/* ============================
   CLEANUPS / UTILITIES
============================= */
.edd_download_purchase_form {
  display: none !important;
}

.no-photos {
  text-align: center;
  font-size: 1.2rem;
  color: #888;
  margin: 3rem 0;
}

.single-download-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.download-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.download-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.download-details {
  max-width: 700px;
}

.btn-format {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #222;
  color: #fff;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn-format:hover {
  background: #444;
}

/* End of unified theme.css */
