/* Wedding Portfolio for Elementor — front-end styles
   Dark charcoal + gold palette (edit via widget Style controls where possible;
   change the variables below to re-theme everything at once). */

:root {
  --wpe-bg: #100E0B;
  --wpe-surface: #1C1812;
  --wpe-white: #FFFFFF;
  --wpe-text: #F4EFE4;
  --wpe-text-soft: #B6AD9C;
  --wpe-gold: #C9A15E;
  --wpe-gold-deep: #E4C285;
  --wpe-font-display: 'Cormorant Garamond', serif;
  --wpe-font-body: 'Jost', sans-serif;
  --wpe-ease: cubic-bezier(.22,.61,.36,1);
}

.wpe-empty {
  font-family: var(--wpe-font-body);
  color: var(--wpe-text-soft);
  padding: 24px 0;
}

/* ==========================================================
   PORTFOLIO GRID
========================================================== */
.wpe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 1024px) { .wpe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .wpe-grid { grid-template-columns: 1fr; } }

.wpe-card {
  display: block;
  text-decoration: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--wpe-ease), transform .8s var(--wpe-ease);
}
.wpe-card.wpe-in-view { opacity: 1; transform: translateY(0); }

.wpe-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--wpe-surface);
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
  transition: box-shadow .4s var(--wpe-ease), transform .4s var(--wpe-ease);
}
.wpe-card-img img,
.wpe-card-placeholder {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1);
  transition: transform .6s var(--wpe-ease);
}
.wpe-card-placeholder { background: var(--wpe-surface); }

.wpe-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,6,.05) 0%, rgba(10,8,6,.15) 55%, rgba(8,6,4,.78) 100%);
  opacity: 0;
  transition: opacity .4s var(--wpe-ease);
}

.wpe-card-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 24px 22px;
  display: flex; flex-direction: column; align-items: flex-start;
  transform: translateY(14px);
  transition: transform .4s var(--wpe-ease);
}
.wpe-names {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--wpe-font-display);
  color: var(--wpe-white);
  font-size: 26px; font-weight: 400; line-height: 1.1;
}
.wpe-amp {
  font-style: italic;
  color: var(--wpe-gold);
  font-size: 20px;
  opacity: .9;
  transition: transform .4s var(--wpe-ease), opacity .4s var(--wpe-ease);
}
.wpe-cta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
  font-family: var(--wpe-font-body);
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--wpe-gold); font-weight: 500;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .4s var(--wpe-ease), opacity .4s var(--wpe-ease) .05s;
}
.wpe-cta svg { width: 13px; height: 13px; transition: transform .4s var(--wpe-ease); }

.wpe-thumbs { display: flex; gap: 4px; margin-top: 14px; }
.wpe-thumb {
  position: relative; flex: 1; aspect-ratio: 1/1;
  border-radius: 1px; overflow: hidden; background: var(--wpe-surface);
}
.wpe-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wpe-thumb-more::after {
  content: attr(data-more);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,6,4,.62);
  color: var(--wpe-white);
  font-family: var(--wpe-font-body);
  font-size: 11px;
}

/* hover state */
.wpe-card:hover .wpe-card-img { box-shadow: 0 26px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(201,161,94,.18); }
.wpe-card:hover .wpe-card-img img { transform: scale(1.08); }
.wpe-card:hover .wpe-card-overlay { opacity: 1; }
.wpe-card:hover .wpe-card-content { transform: translateY(0); }
.wpe-card:hover .wpe-amp { transform: scale(1.15); opacity: 1; }
.wpe-card:hover .wpe-cta { max-height: 30px; opacity: 1; }
.wpe-card:hover .wpe-cta svg { transform: translateX(4px); }
.wpe-card { transition: transform .4s var(--wpe-ease); }
.wpe-card:hover { transform: translateY(-6px); }

/* ==========================================================
   FEATURED IMAGE (large, above the small gallery grid)
========================================================== */
.wpe-featured {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 2px;
  cursor: zoom-in;
  background: var(--wpe-surface);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.wpe-featured img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1);
  transition: transform .6s var(--wpe-ease);
}
.wpe-featured:hover img { transform: scale(1.03); }

/* ==========================================================
   MASONRY GALLERY (detail page)
========================================================== */
.wpe-masonry {
  column-count: 4;
  column-gap: 20px;
}
@media (max-width: 1024px) { .wpe-masonry { column-count: 3; } }
@media (max-width: 640px)  { .wpe-masonry { column-count: 2; column-gap: 12px; } }

.wpe-masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 2px;
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--wpe-ease), transform .7s var(--wpe-ease);
}
.wpe-masonry-item.wpe-in-view { opacity: 1; transform: translateY(0); }
.wpe-masonry-item img {
  width: 100%; display: block;
  transition: transform .6s var(--wpe-ease), filter .6s var(--wpe-ease);
}
.wpe-masonry-item:hover img { transform: scale(1.035); filter: brightness(1.04); }

/* ==========================================================
   LIGHTBOX
========================================================== */
.wpe-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,8,6,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--wpe-ease), visibility 0s linear .4s;
}
.wpe-lightbox.open { opacity: 1; visibility: visible; transition: opacity .4s var(--wpe-ease), visibility 0s linear 0s; }
.wpe-lb-figure { max-width: 88vw; max-height: 84vh; position: relative; margin: 0; }
.wpe-lb-img {
  max-width: 88vw; max-height: 84vh; width: auto; height: auto;
  object-fit: contain;
  opacity: 0; transform: scale(.97);
  transition: opacity .35s var(--wpe-ease), transform .35s var(--wpe-ease);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.wpe-lb-img.show { opacity: 1; transform: scale(1); }
.wpe-lb-close, .wpe-lb-prev, .wpe-lb-next {
  position: absolute;
  color: var(--wpe-white);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: none; cursor: pointer;
  transition: background .3s var(--wpe-ease), transform .3s var(--wpe-ease);
}
.wpe-lb-close:hover, .wpe-lb-prev:hover, .wpe-lb-next:hover { background: var(--wpe-gold); transform: scale(1.06); }
.wpe-lb-close { top: 24px; right: 24px; }
.wpe-lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.wpe-lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.wpe-lb-prev svg, .wpe-lb-next svg, .wpe-lb-close svg { width: 18px; height: 18px; }
.wpe-lb-counter {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-family: var(--wpe-font-body);
  font-size: 12px; letter-spacing: .2em;
}
@media (max-width: 680px) {
  .wpe-lb-prev, .wpe-lb-next { width: 38px; height: 38px; }
  .wpe-lb-prev { left: 10px; } .wpe-lb-next { right: 10px; }
  .wpe-lb-close { top: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .wpe-card, .wpe-card-img, .wpe-card-img img, .wpe-card-overlay, .wpe-card-content,
  .wpe-amp, .wpe-cta, .wpe-masonry-item, .wpe-masonry-item img, .wpe-lightbox, .wpe-lb-img {
    transition-duration: .001ms !important;
  }
}
