/* Page: Planters */

:root {
  --bronze: #AF8B58;
  --ebony: #1A1A1A;
  --beige: #f6f1ec;
  --luxury-radius: 12px;
}

.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.page-hero img.bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 0 16px;
}

.page-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  font-family: "Playfair Display", serif;
}

.page-hero p {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

.back-to-home {
  display: inline-block;
  margin-bottom: 30px;
  margin-top: 20px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.3s;
}

.back-to-home:hover {
  color: var(--primary);
}

.back-to-home i {
  margin-right: 8px;
}

.collection-section {
  background: var(--beige);
  padding: 60px 0 100px;
}

/* ======================================= */
/* Editorial Header */
/* ======================================= */

.editorial-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeUp 0.8s ease-out forwards;
}

.editorial-header .subtitle {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--bronze);
  margin-bottom: 15px;
  font-weight: 500;
}

.editorial-header .main-title {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  color: var(--ebony);
  margin-bottom: 25px;
  font-weight: 600;
}

.editorial-header .description {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  font-weight: 300;
}

/* ======================================= */
/* Bento Grid Layout (Dynamic Aspect Ratios) */
/* ======================================= */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 350px;
  gap: 40px; /* Increased for airiness */
  grid-auto-flow: dense;
  padding: 10px 0 30px;
}

.bento-item {
  border-radius: var(--luxury-radius);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

/* Dynamic Classes from Server Script */
.item-portrait {
  grid-row: span 2;
}

.item-landscape {
  grid-row: span 1;
  grid-column: span 2;
}

.item-square {
  grid-row: span 1;
  grid-column: span 1;
}

.bento-item:hover {
  transform: translateY(-10px);
}

.img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: visible;
}

.bento-item img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.bento-item:hover img {
  transform: scale(1.05);
}

/* Item Details */
.item-details {
  display: none;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================= */
/* Responsive Columns */
/* ======================================= */

@media (max-width: 1200px) {
  .editorial-header .main-title {
    font-size: 3rem;
  }
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .editorial-header .main-title {
    font-size: 2.5rem;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
  }
  .item-landscape {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .editorial-header .main-title {
    font-size: 2rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 350px;
  }
  .item-landscape {
    grid-column: span 1;
  }
}
