/* =====================================================
   Real Wedding Looks By Kafnii – FINAL GALLERY CSS
   Compatible with OpenCart 3 + Journal 3
   ===================================================== */


/* =====================================================
   MAIN PAGE – CUSTOMER LISTING GRID
   ===================================================== */

.customer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 30px 0;
}

.customer-grid a {
  text-decoration: none;
  color: #111;
  transition: transform 0.3s ease;
}

.customer-grid a:hover {
  transform: translateY(-6px);
}

.customer-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
}

.customer-grid h3 {
  margin-top: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.4px;
}


/* =====================================================
   CUSTOMER PROFILE PAGE – IMAGE GALLERY
   ===================================================== */

.wedding-gallery {
  display: grid;
  gap: 35px;
  margin: 40px auto;
}

/* Desktop – premium large images */
@media (min-width: 1200px) {
  .wedding-gallery {
    grid-template-columns: repeat(2, 1fr); /* Big images */
    max-width: 1200px;
  }

  .wedding-gallery img {
    border-radius: 18px;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1199px) {
  .wedding-gallery {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .wedding-gallery img {
    border-radius: 16px;
  }
}

/* Mobile – full width images */
@media (max-width: 768px) {
  .wedding-gallery {
    grid-template-columns: 1fr; /* Full screen width */
    gap: 25px;
  }

  .wedding-gallery img {
    border-radius: 12px;
  }
}

/* Shared image styling */
.wedding-gallery img {
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.wedding-gallery img:hover {
  transform: scale(1.02);
}


/* =====================================================
   RESPONSIVE MAIN GRID
   ===================================================== */

@media (max-width: 1024px) {
  .customer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .customer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .customer-grid h3 {
    font-size: 14px;
  }
}


/* =====================================================
   SAFETY – NO CONFLICT WITH JOURNAL ELEMENTS
   ===================================================== */

.customer-grid,
.wedding-gallery {
  box-sizing: border-box;
}
/* Fix editor breaking grid items */
.customer-item {
  width: 100%;
}