/* Rose beige background for the whole section */
#pictures-transformation {
  background: #d0b5a1;
  width: 100%;
  padding: 2.5rem 0;
}
/* Photography page responsive media query */
@media (min-width: 992px) {
  .author-illustrator-img { height: clamp(600px, 30vh, 480px) !important; }
  .author-illustrator-wrap { max-height: none !important; }
}
/* Reinvented Picture Transformation Styles */

.main-image-square {
  width: 270px;
  height: 270px;
  background: #f5ecd7;
  border-radius: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.main-image-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  border: 6px solid #fff;
}

.edit-btn {
  position: absolute;
  top: 85%;
  left: 42%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #333;
  border: none;
  border-radius: 999px;
  font-weight: 300;
  font-size: 1.9rem;
  font-family:cursive;
  padding: 0.1rem 1.0rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
}
.edit-btn:hover {
  background: #f5ecd7;
  color: #222;
}

.polaroid-image-container {
  width: 320px;
  height: 370px;
  background: #ededed;
  border-radius: 0;
  transform: rotate(10deg);
  box-shadow: 0 6px 32px rgba(0,0,0,0.12);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  margin-left: -40px;
  padding: 18px 12px 38px 12px;
}

.polaroid-image-container img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 0;
  transform: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #eee;
  transition: filter 1.2s cubic-bezier(0.25,0.46,0.45,0.94);
}

.polaroid-blur {
  filter: blur(18px);
}
.polaroid-clear {
  filter: blur(0px);
}

.arrow-btn {
  background: #fff;
  color: #333;
  border: none;
  border-radius: 999px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.arrow-btn:hover {
  background: #f5ecd7;
  color: #222;
}

@media (max-width: 600px) {
  /* Center align main intro and services text on mobile */
  .mobile-center,
  .services-section .row > div,
  .services-section .row > div > div,
  .services-section h6,
  .services-section p,
  .services-section {
    text-align: center !important;
  }
  .main-image-square {
    width: 60vw;
    height: 60vw;
    min-width: 100px;
    min-height: 100px;
    max-width: 180px;
    max-height: 180px;
  }
  .polaroid-image-container {
    width: 75vw;
    height: 85vw;
    min-width: 120px;
    min-height: 140px;
    max-width: 240px;
    max-height: 270px;
    padding: 12px 8px 38px 8px;
  }
  .polaroid-image-container img {
    height: 74vw;
    max-height: 205px;
  }
}
/* Photography comparison gallery styles */
.comparison-gallery {
  margin-top: 2rem;
}

.comparison-item {
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
}


.image-container {
  position: relative;
  overflow: hidden;
}

.image-placeholder {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: blur(25px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.after-img.transformed {
  filter: blur(0px);
  transform: scale(1.02);
  box-shadow: none;
}

.image-placeholder.transformed {
  filter: blur(0px);
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(33, 150, 243, 0.4);
}

.transform-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.transform-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.transform-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.transform-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.transform-btn i {
  font-size: 1.2rem;
}

.image-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: none;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 5;
}

.before-label {
  background: rgba(108, 117, 125, 0.9);
}

.after-label {
  background: rgba(33, 150, 243, 0.9);
}

.image-placeholder:hover {
  transform: scale(1.01);
}

.before-image:hover {
  border-color: #adb5bd;
}