@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Reenie+Beanie&display=swap');

:root {
  --shadow-alpha-27d8a218: 0.35;
}

.collage-outer-wrapper-27d8a218 {
  position: relative;
  width: 100%;
  background: #FAF7F2;
  overflow: hidden;
  z-index: 1;
}

/* Authentic Paper Grain Background */
.collage-paper-grain-27d8a218 {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: radial-gradient(circle, #000 1px, transparent 1px);
  background-size: 12px 12px;
  z-index: 0;
}

.collage-content-container-27d8a218 {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Editorial Heading Block */
.editorial-header-block-27d8a218 {
  text-align: center;
  margin-bottom: 70px;
  max-width: 600px;
}

.main-editorial-title-27d8a218 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  color: #3D2F28;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.main-editorial-subtitle-27d8a218 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: #7A6B63;
  margin: 0;
}

/* Scrapbook decorative minimal details */
.scrapbook-star-27d8a218 {
  position: absolute;
  font-size: 24px;
  user-select: none;
  pointer-events: none;
  opacity: 0.7;
}
.star-pos-1 { top: 10%; left: 10%; }
.star-pos-2 { top: 25%; right: 12%; font-size: 28px; }
.star-pos-3 { bottom: 15%; left: 8%; }
.star-pos-4 { bottom: 20%; right: 15%; }

/* Editorial Collage Arrangement with overlaps */
.editorial-collage-layout-27d8a218 {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 550px;
  margin-top: 30px;
}

/* Polaroid Card presentation wrapper */
.collage-card-wrapper-27d8a218 {
  position: absolute;
  width: 320px;
  border-radius: 2px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Real Card Styling */
.collage-card-inner-27d8a218 {
  background: #FFFFFF;
  padding: 15px 15px 35px 15px; /* bottom spacer for polaroid photo label effect */
  border-radius: 1px;
  box-shadow: 
    0 15px 35px rgba(61, 47, 40, calc(var(--shadow-alpha-27d8a218) * 0.25)),
    0 2px 8px rgba(61, 47, 40, calc(var(--shadow-alpha-27d8a218) * 0.12));
  border: 1px solid rgba(224, 218, 209, 0.5);
  position: relative;
}

.card-image-box-27d8a218 {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #Fcfbfa;
  border: 1px solid rgba(0,0,0,0.04);
}

.card-image-box-27d8a218 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Polaroids Caption Tag - Handwritten script style */
.card-caption-tag-27d8a218 {
  margin-top: 15px;
  text-align: center;
}

.card-caption-tag-27d8a218 span {
  font-family: 'Reenie Beanie', cursive;
  font-size: 26px;
  color: #7A6B63;
  letter-spacing: 1px;
}

/* Scrapbook tape attachments */
.washi-tape-accent-27d8a218 {
  position: absolute;
  background: rgba(244, 213, 217, 0.6); /* soft transparent pink washi tape look */
  backdrop-filter: blur(1px);
  width: 90px;
  height: 25px;
  border-left: 2px dashed rgba(255,255,255,0.4);
  border-right: 2px dashed rgba(255,255,255,0.4);
  z-index: 10;
  pointer-events: none;
  display: none;
}

.has-washi-tape-27d8a218 .washi-tape-accent-27d8a218 {
  display: block;
}

.washi-pos-top-left {
  top: -15px;
  left: -20px;
  transform: rotate(-35deg);
}

.washi-pos-top-right {
  top: -15px;
  right: -20px;
  transform: rotate(30deg);
  background: rgba(232, 219, 252, 0.5); /* subtle soft purple washi tape */
}

.washi-pos-bottom-center {
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(5deg);
  background: rgba(224, 218, 209, 0.7); /* soft beige tape */
  width: 100px;
}

/* Overlapping and Positions for Collage (The Editorial layout) */
.card-sheep-item-27d8a218 {
  z-index: 1;
  transform: translate3d(-140px, -60px, 0) rotate(3deg);
}

.card-books-item-27d8a218 {
  z-index: 3;
  transform: translate3d(0, 40px, 0) rotate(-4deg);
}

.card-flowers-item-27d8a218 {
  z-index: 2;
  transform: translate3d(140px, -40px, 0) rotate(5deg);
}

/* Hover effects with lifting and scale */
.has-hover-animation-27d8a218 .collage-card-wrapper-27d8a218:hover {
  z-index: 10;
}

.has-hover-animation-27d8a218 .card-sheep-item-27d8a218:hover {
  transform: translate3d(-140px, -70px, 0) scale(1.04) rotate(4deg);
}

.has-hover-animation-27d8a218 .card-books-item-27d8a218:hover {
  transform: translate3d(0, 30px, 0) scale(1.04) rotate(-3deg);
}

.has-hover-animation-27d8a218 .card-flowers-item-27d8a218:hover {
  transform: translate3d(140px, -50px, 0) scale(1.04) rotate(6deg);
}

.has-hover-animation-27d8a218 .collage-card-wrapper-27d8a218:hover .collage-card-inner-27d8a218 {
  box-shadow: 
    0 25px 50px rgba(61, 47, 40, calc(var(--shadow-alpha-27d8a218) * 0.35)),
    0 5px 15px rgba(61, 47, 40, calc(var(--shadow-alpha-27d8a218) * 0.18));
}

/* Responsiveness adjustments */
@media (max-width: 991px) {
  .editorial-collage-layout-27d8a218 {
    min-height: 480px;
  }
  .collage-card-wrapper-27d8a218 {
    width: 260px;
  }
  .card-sheep-item-27d8a218 {
    transform: translate3d(-100px, -40px, 0) rotate(3deg);
  }
  .card-books-item-27d8a218 {
    transform: translate3d(0, 30px, 0) rotate(-4deg);
  }
  .card-flowers-item-27d8a218 {
    transform: translate3d(100px, -20px, 0) rotate(5deg);
  }
  /* Scale hovers down proportionally */
  .has-hover-animation-27d8a218 .card-sheep-item-27d8a218:hover {
    transform: translate3d(-100px, -45px, 0) scale(1.03) rotate(4deg);
  }
  .has-hover-animation-27d8a218 .card-books-item-27d8a218:hover {
    transform: translate3d(0, 25px, 0) scale(1.03) rotate(-3deg);
  }
  .has-hover-animation-27d8a218 .card-flowers-item-27d8a218:hover {
    transform: translate3d(100px, -25px, 0) scale(1.03) rotate(6deg);
  }
}

@media (max-width: 767px) {
  .editorial-collage-layout-27d8a218 {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-height: auto;
    align-items: center;
  }
  .collage-card-wrapper-27d8a218 {
    position: relative;
    width: 280px;
    transform: none !important;
  }
  .card-sheep-item-27d8a218,
  .card-books-item-27d8a218,
  .card-flowers-item-27d8a218 {
    transform: none !important;
  }
  .has-hover-animation-27d8a218 .collage-card-wrapper-27d8a218:hover {
    transform: scale(1.03) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collage-card-wrapper-27d8a218 {
    transition: none !important;
  }
}
