/* ===========================
   Origo: Scatter Photo Layout
   料理写真を放射状に重なりつつ散布
   =========================== */

.origo-scatter-section {
  padding: 80px 0 40px;
  background: #faf9f7;
  overflow: hidden;
}

.origo-scatter__menu-text {
  text-align: center;
  font-size: 0.9rem;
  line-height: 2.2;
  color: #555;
  letter-spacing: 0.05em;
  margin-bottom: 50px;
}

.origo-scatter {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.origo-scatter__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35%;
  margin-left: -17.5%;
  margin-top: -13%;
  opacity: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

/* Fallback: if JS doesn't run, show photos in a grid */
.origo-scatter--no-js .origo-scatter__item {
  position: relative;
  top: auto;
  left: auto;
  margin: 0;
  opacity: 1;
  width: 100%;
}

.origo-scatter--no-js {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  aspect-ratio: auto;
}

.origo-scatter__item:hover {
  z-index: 100 !important;
  transform: scale(1.08) rotate(0deg) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s ease;
}

.origo-scatter__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Responsive: smaller screens */
@media (max-width: 768px) {
  .origo-scatter-section {
    padding: 60px 0 30px;
  }

  .origo-scatter {
    max-width: 420px;
    aspect-ratio: 1 / 1.1;
  }

  .origo-scatter__item {
    width: 34%;
    margin-left: -17%;
    margin-top: -12.5%;
  }
}

@media (max-width: 480px) {
  .origo-scatter {
    max-width: 340px;
    aspect-ratio: 1 / 1.2;
  }

  .origo-scatter__item {
    width: 38%;
    margin-left: -19%;
    margin-top: -14%;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  }
}
