/* Single Profile Modern Gallery - frontend */

.spmg-gallery {
  background: rgba(0,0,0,.02);
  border-radius: 16px;
  padding: 16px;
}

.spmg-body {
  display: flex;
  gap: 12px;
}

/* left main image */
.spmg-left {
  flex: 1 1 auto;
  position: relative;
  cursor: pointer;
}

.spmg-aspect {
  position: relative;
  width: 100%;
  padding-top: 130%;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.spmg-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.spmg-slide.is-active { display: flex; }

.spmg-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* zoom button */
.spmg-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background .12s ease;
}
.spmg-zoom:hover { background: rgba(0,0,0,.7); }

/* right thumbs */
.spmg-right {
  width: 95px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spmg-thumb {
  border: none;
  background: transparent;
  padding: 0;
  width: 95px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  opacity: .6;
  transition: opacity .12s ease, box-shadow .12s ease;
}
.spmg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spmg-thumb.is-active {
  opacity: 1;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}

/* modal */
.spmg-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999999;
}
.spmg-modal.is-open { display: block; }
.spmg-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
}
.spmg-modal-content {
  position: absolute;
  inset: 3% 3%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spmg-modal-inner {
  position: relative;
  width: min(1100px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.spmg-modal-slide { display: none; }
.spmg-modal-slide.is-active { display: block; }
.spmg-modal-slide img {
  max-height: 90vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 16px 45px rgba(0,0,0,.35);
}

/* clean arrows – no background circles */
.spmg-arrow,
.spmg-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
}

/* close (top right) */
.spmg-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(0,0,0,.5);
  transition: opacity .12s ease;
}
.spmg-close:hover {
  opacity: .8;
}

/* arrows */
.spmg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.spmg-prev { left: 14px; }
.spmg-next { right: 14px; }

/* bigger & centered arrow icon */
.spmg-arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.spmg-arrow:hover .spmg-arrow-icon {
  opacity: .85;
}

/* CTA only in modal */
.spmg-cta-wrap {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
}
.spmg-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

/* mobile */
@media (max-width: 768px) {
  .spmg-body {
    flex-direction: column;
  }
  .spmg-right {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .spmg-thumb {
    width: 70px;
    height: 70px;
  }
  .spmg-modal-content {
    inset: 4% 2%;
  }
  .spmg-prev { left: 6px; }
  .spmg-next { right: 6px; }
  .spmg-close { top: 10px; right: 10px; }
}
