/* TGE Projects Studio v1.2.1 — project templates use the site header's
   existing burgundy toolbar. This plugin does not create its own band. */
:root { --tgeps-burgundy:#8F2D56; }
body.single-tge_project,
body.post-type-archive-tge_project { --tgeps-band-height:0px; }
body.single-tge_project .elementor-location-header,
body.post-type-archive-tge_project .elementor-location-header,
body.single-tge_project header.site-header,
body.post-type-archive-tge_project header.site-header,
body.single-tge_project header#masthead,
body.post-type-archive-tge_project header#masthead {
  position:absolute!important;
  inset-inline:0!important;
  top:var(--tgeps-band-height)!important;
  margin-top:0!important;
  background:transparent!important;
  z-index:2147481000!important;
  width:100%!important;
}
body.admin-bar.single-tge_project .elementor-location-header,
body.admin-bar.post-type-archive-tge_project .elementor-location-header,
body.admin-bar.single-tge_project header.site-header,
body.admin-bar.post-type-archive-tge_project header.site-header,
body.admin-bar.single-tge_project header#masthead,
body.admin-bar.post-type-archive-tge_project header#masthead {
  top:calc(var(--wp-admin--admin-bar--height,32px) + var(--tgeps-band-height))!important;
}
/* Keep the existing native header (including its own toolbar) overlaying
   the photograph; no extra stripe or spacer belongs to this plugin. */
.tgeps.tgeps--single,
.tgeps.tgeps--archive{
  margin-top:0!important;
  padding-top:0!important;
  border:0!important;
  width:100%;
  overflow:hidden;
  --black:#0D0F10;--charcoal:#171216;--wine:#8F2D56;--pink:#8F2D56;--white:#F5F5F5;
}
.tgeps .tgeps-single-hero{
  min-height:clamp(640px,88svh,900px)!important;
  display:flex!important;
  align-items:stretch!important;
  padding:clamp(172px,16vw,230px) 0 clamp(68px,6vw,110px)!important;
  margin:0 0 -1px!important;
  background:#0D0F10!important;
  border:0!important;
  outline:none!important;
  isolation:isolate;
  overflow:hidden;
  position:relative;
}
.tgeps .tgeps-single-hero::before,
.tgeps .tgeps-single-hero::after { display:none!important;content:none!important; }
.tgeps .tgeps-hero-cover,
.tgeps .tgeps-hero-vignette { position:absolute;inset:-2px;pointer-events:none; }
.tgeps .tgeps-hero-cover{ z-index:0;overflow:hidden;background:#171216; }
.tgeps .tgeps-hero-cover img{
  display:block;width:100%;height:100%;object-fit:cover;object-position:center 38%;
  animation:tgepsHeroDrift 22s ease-in-out infinite alternate;
}
.tgeps .tgeps-hero-vignette{
  z-index:1;
  background:linear-gradient(0deg,#0D0F10 0%,rgba(13,15,16,.88) 13%,rgba(13,15,16,.63) 38%,rgba(13,15,16,.22) 100%),
  linear-gradient(90deg,rgba(13,15,16,.85),rgba(13,15,16,.28) 72%);
}
@keyframes tgepsHeroDrift {from{transform:scale(1.01)}to{transform:scale(1.085)}}
.tgeps .tgeps-hero-layout{ position:relative;z-index:2;display:grid;align-items:center;grid-template-columns:minmax(0,1fr);gap:clamp(22px,4vw,70px);padding:0!important; }
.tgeps .tgeps-hero-writing{min-width:0;position:relative;z-index:2}
.tgeps .tgeps-hero-writing .tgeps-back{margin:0 0 50px}
.tgeps .tgeps-hero-writing .tgeps-kicker{color:var(--tgeps-wine-text,#E7CBD5);font-size:12px;letter-spacing:.25em}
.tgeps .tgeps-hero-writing h1{
  font-size:clamp(50px,6.9vw,104px)!important;
  line-height:1.02;letter-spacing:-.07em;margin:20px 0 28px;
  text-wrap:balance;color:#F5F5F5;
}
.tgeps .tgeps-project-data{gap:9px}
.tgeps .tgeps-project-data>*{background:rgba(13,15,16,.35);backdrop-filter:blur(6px);border:1px solid rgba(245,245,245,.35)}
.tgeps .tgeps-project-data>strong{color:var(--tgeps-wine-text,#E7CBD5);border-color:var(--tgeps-wine-text,#E7CBD5)}
.tgeps .tgeps-intro{border-top:0!important;padding-top:40px!important;margin-top:0!important;position:relative;background:#0D0F10}
.tgeps .tgeps-gallery-section{position:relative}
.tgeps .tgeps-gallery-title{position:relative}
/* A faint invisible 1px seam can appear when slow zoom composites into the
   next section; force solid black beneath both elements. */
.tgeps .tgeps-single-hero + .tgeps-container{background:#0D0F10;position:relative}

/* 1 — CINEMATIC DARK: sweeping, huge photographic cover and floating caption */
.tgeps--template-cinematic-dark .tgeps-hero-writing{width:min(900px,100%);align-self:end}
.tgeps--template-cinematic-dark .tgeps-hero-layout{align-items:end}
.tgeps--template-cinematic-dark .tgeps-hero-cover img{object-position:center 43%}
.tgeps--template-cinematic-dark .tgeps-hero-vignette{background:linear-gradient(0deg,#0D0F10 0%,rgba(13,15,16,.93) 17%,rgba(13,15,16,.35) 66%,rgba(13,15,16,.25) 100%),linear-gradient(90deg,rgba(23,18,22,.78),rgba(13,15,16,.09) 85%)}
.tgeps--template-cinematic-dark .tgeps-hero-writing h1{max-width:13ch}
.tgeps--template-cinematic-dark .tgeps-gallery-title h2{font-size:clamp(38px,4.2vw,66px)}

/* 2 — EDITORIAL WEDDING: real asymmetrical split with floating portrait,
   refined headline and photographic caption. */
.tgeps--template-editorial-wedding .tgeps-single-hero{min-height:780px!important}
.tgeps--template-editorial-wedding .tgeps-hero-layout{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:4vw}
.tgeps--template-editorial-wedding .tgeps-hero-cover img{object-position:75% 36%;filter:grayscale(.25)}
.tgeps--template-editorial-wedding .tgeps-hero-vignette{background:linear-gradient(90deg,#0D0F10 0%,rgba(13,15,16,.95) 29%,rgba(13,15,16,.53) 71%,rgba(23,18,22,.27) 100%),linear-gradient(0deg,#0D0F10 0%,transparent 48%)}
.tgeps--template-editorial-wedding .tgeps-hero-writing h1{font-size:clamp(44px,5.25vw,79px)!important;letter-spacing:-.06em;line-height:1.06;max-width:13ch}
.tgeps--template-editorial-wedding .tgeps-editorial-rule{font-size:10px;font-weight:700;letter-spacing:.26em;color:#F5F5F5;opacity:.55;display:block;margin-bottom:24px}
.tgeps--template-editorial-wedding .tgeps-hero-introline{font-size:clamp(17px,1.8vw,24px);font-weight:500;color:var(--tgeps-wine-text,#E7CBD5);margin:0 0 25px;letter-spacing:-.02em}
.tgeps .tgeps-hero-feature{display:block;position:relative;min-width:0;margin:0;align-self:stretch;overflow:hidden}
.tgeps .tgeps-hero-feature img{width:100%;height:100%;object-fit:cover;display:block}
.tgeps--template-editorial-wedding .tgeps-hero-feature--editorial{max-height:590px;min-height:450px;border:1px solid rgba(245,245,245,.34);box-shadow:30px 35px 0 rgba(143,45,86,.22),0 36px 80px rgba(0,0,0,.45);transform:rotate(1.4deg);transition:transform .85s cubic-bezier(.2,.8,.2,1),box-shadow .8s ease}
.tgeps--template-editorial-wedding .tgeps-hero-feature--editorial:hover{transform:rotate(0deg) translateY(-13px) scale(1.016);box-shadow:15px 24px 0 rgba(143,45,86,.27),0 55px 92px rgba(0,0,0,.58)}
.tgeps--template-editorial-wedding .tgeps-hero-feature--editorial img{object-position:center 35%;filter:saturate(.83)}
.tgeps--template-editorial-wedding .tgeps-hero-feature--editorial figcaption{position:absolute;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:30px 22px 19px;background:linear-gradient(0deg,rgba(13,15,16,.85),transparent);font-size:10px;letter-spacing:.17em;font-weight:700;color:#F5F5F5}
.tgeps--template-editorial-wedding .tgeps-masonry{columns:2;column-gap:17px}
.tgeps--template-editorial-wedding .tgeps-photo{border-radius:12px;margin-bottom:17px!important}
.tgeps--template-editorial-wedding .tgeps-gallery-title h2 em{color:var(--tgeps-wine-text,#E7CBD5)}

/* 3 — DYNAMIC MOSAIC: split-screen project information + staggered photo grid,
   designed for sports and events. */
.tgeps--template-dynamic-mosaic .tgeps-single-hero{min-height:780px!important}
.tgeps--template-dynamic-mosaic .tgeps-hero-layout{grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:clamp(24px,3vw,56px)}
.tgeps--template-dynamic-mosaic .tgeps-hero-cover img{filter:saturate(.6) contrast(1.05)}
.tgeps--template-dynamic-mosaic .tgeps-hero-vignette{background:linear-gradient(90deg,#171216 0%,rgba(13,15,16,.95) 24%,rgba(13,15,16,.80) 62%,rgba(13,15,16,.57) 100%),linear-gradient(0deg,#0D0F10,transparent 55%)}
.tgeps--template-dynamic-mosaic .tgeps-hero-writing h1{font-size:clamp(42px,5.2vw,79px)!important;max-width:12ch}
.tgeps--template-dynamic-mosaic .tgeps-hero-introline{font-size:19px;color:var(--tgeps-wine-text,#E7CBD5);margin:0 0 25px;font-weight:500}
.tgeps .tgeps-hero-mosaic{position:relative;display:grid;grid-template-columns:1fr .86fr;grid-template-rows:repeat(3,145px);gap:13px;max-height:520px;isolation:isolate}
.tgeps .tgeps-hero-mosaic-tile{overflow:hidden;position:relative;border:1px solid rgba(245,245,245,.22);background:#0D0F10;box-shadow:0 19px 50px rgba(0,0,0,.4);transition:transform .6s cubic-bezier(.2,.75,.2,1),box-shadow .6s ease;will-change:transform}
.tgeps .tgeps-hero-mosaic-tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .8s cubic-bezier(.2,.8,.2,1)}
.tgeps .tgeps-hero-mosaic-tile:hover{transform:translateY(-13px) scale(1.024);z-index:6;box-shadow:0 32px 64px rgba(0,0,0,.6)}
.tgeps .tgeps-hero-mosaic-tile:hover img{transform:scale(1.065)}
.tgeps .tgeps-hero-mosaic-tile--1{grid-column:1;grid-row:1 / span 3;transform:translateY(7px)}
.tgeps .tgeps-hero-mosaic-tile--2{grid-column:2;grid-row:1;transform:translateY(-9px)}
.tgeps .tgeps-hero-mosaic-tile--3{grid-column:2;grid-row:2;transform:translateY(2px)}
.tgeps .tgeps-hero-mosaic-tile--4{grid-column:2;grid-row:3;transform:translateY(12px)}
.tgeps .tgeps-hero-mosaic-stamp{position:absolute;bottom:-28px;right:0;letter-spacing:.25em;color:var(--tgeps-wine-text,#E7CBD5);font-size:10px;font-weight:800}
.tgeps--template-dynamic-mosaic .tgeps-masonry{columns:4;column-gap:11px}
.tgeps--template-dynamic-mosaic .tgeps-photo{border-radius:0;margin-bottom:11px!important}
.tgeps--template-dynamic-mosaic .tgeps-photo:nth-child(5n+2){transform:translateY(9px)}
.tgeps--template-dynamic-mosaic .tgeps-photo:hover{transform:translateY(-12px) scale(1.02)!important}

/* 4 — MINIMAL STORY: compact split with framed horizontal photograph and
   clean information. Leaves visual breathing room without a huge tall hero. */
.tgeps--template-minimal-story .tgeps-single-hero{min-height:560px!important;padding-bottom:58px!important}
.tgeps--template-minimal-story .tgeps-hero-layout{grid-template-columns:minmax(0,1fr) minmax(0,.92fr);gap:clamp(28px,5vw,80px)}
.tgeps--template-minimal-story .tgeps-hero-vignette{background:linear-gradient(90deg,rgba(13,15,16,.97),rgba(13,15,16,.89) 46%,rgba(13,15,16,.55)),linear-gradient(0deg,#0D0F10 0%,transparent 75%)}
.tgeps--template-minimal-story .tgeps-hero-cover img{filter:saturate(.48) brightness(.8)}
.tgeps--template-minimal-story .tgeps-hero-writing h1{font-size:clamp(38px,4.25vw,66px)!important;letter-spacing:-.055em;max-width:14ch;margin:14px 0 24px}
.tgeps--template-minimal-story .tgeps-minimal-index{font-size:11px;color:#F5F5F5;opacity:.45;font-weight:700;letter-spacing:.24em;display:block;margin-bottom:15px}
.tgeps--template-minimal-story .tgeps-minimal-scroll{display:block;margin-top:40px;font-size:10px;color:var(--tgeps-wine-text,#E7CBD5);letter-spacing:.22em;font-weight:750}
.tgeps--template-minimal-story .tgeps-hero-feature--minimal{min-height:275px;max-height:370px;align-self:center;box-shadow:0 28px 70px rgba(0,0,0,.48);border-radius:16px;border:1px solid rgba(245,245,245,.22)}
.tgeps--template-minimal-story .tgeps-hero-feature--minimal img{object-fit:cover;object-position:center 40%;transition:transform .8s ease}
.tgeps--template-minimal-story .tgeps-hero-feature--minimal:hover img{transform:scale(1.065)}
.tgeps--template-minimal-story .tgeps-hero-feature--minimal figcaption{position:absolute;bottom:0;right:0;left:0;padding:17px 20px;text-align:right;font-size:10px;letter-spacing:.2em;font-weight:700;color:#F5F5F5;background:linear-gradient(0deg,rgba(13,15,16,.72),transparent)}
.tgeps--template-minimal-story .tgeps-intro{padding:26px 0 42px!important;}
.tgeps--template-minimal-story .tgeps-gallery-title h2{font-size:clamp(34px,3.5vw,52px)}
.tgeps--template-minimal-story .tgeps-masonry{columns:2;column-gap:16px}
.tgeps--template-minimal-story .tgeps-photo{border-radius:8px;margin-bottom:16px!important}

/* Archive header shares the same true top overlay (no negative margins). */
.tgeps.tgeps--archive .tgeps-hero{
  min-height:clamp(460px,63svh,710px);
  padding-top:clamp(180px,17vw,245px)!important;
  background:radial-gradient(ellipse at 81% 36%,rgba(143,45,86,.32),transparent 47%),linear-gradient(120deg,#0D0F10,#171216);
}

@media(max-width:1100px){
 .tgeps--template-dynamic-mosaic .tgeps-masonry{columns:3}
 .tgeps .tgeps-hero-mosaic{grid-template-rows:repeat(3,122px)}
 .tgeps--template-editorial-wedding .tgeps-hero-feature--editorial{min-height:360px;max-height:470px}
}
@media(max-width:760px){
  .tgeps .tgeps-single-hero{min-height:580px!important;padding:clamp(158px,31vw,220px) 0 62px!important}
  .tgeps .tgeps-hero-layout{display:grid;grid-template-columns:1fr!important;gap:40px!important}
  .tgeps .tgeps-hero-writing .tgeps-back{margin-bottom:30px}
  .tgeps .tgeps-hero-writing h1{font-size:clamp(39px,9.1vw,70px)!important;max-width:100%}
  .tgeps--template-editorial-wedding .tgeps-hero-feature--editorial{min-height:330px;max-height:490px;width:min(100%,480px);justify-self:center}
  .tgeps--template-dynamic-mosaic .tgeps-hero-mosaic{grid-template-rows:repeat(3,105px);width:100%;max-width:570px;margin:0 auto 25px}
  .tgeps--template-dynamic-mosaic .tgeps-hero-writing h1{font-size:clamp(39px,8vw,70px)!important}
  .tgeps--template-minimal-story .tgeps-single-hero{min-height:530px!important}
  .tgeps--template-minimal-story .tgeps-hero-feature--minimal{min-height:230px;max-height:310px}
  .tgeps--template-dynamic-mosaic .tgeps-masonry,
  .tgeps--template-editorial-wedding .tgeps-masonry,
  .tgeps--template-minimal-story .tgeps-masonry{columns:2}
  .tgeps.tgeps--archive .tgeps-hero{padding-top:165px!important}
}
@media(max-width:430px){
  .tgeps .tgeps-project-data>*{font-size:10px;padding:8px 11px}
  .tgeps--template-dynamic-mosaic .tgeps-hero-mosaic{grid-template-rows:repeat(3,80px);gap:9px}
  .tgeps--template-dynamic-mosaic .tgeps-hero-mosaic-stamp{bottom:-20px;font-size:8px}
  .tgeps--template-editorial-wedding .tgeps-hero-feature--editorial{min-height:310px}
}
@media(prefers-reduced-motion:reduce){
 .tgeps .tgeps-hero-cover img{animation:none!important}
 .tgeps .tgeps-hero-mosaic-tile{transition:none!important;will-change:auto}
 .tgeps .tgeps-hero-feature{transition:none!important}
}

/* v1.3.2 — premium wedding archive's matching individual project themes. */
.tgeps .tgeps-hero-writing h1 em,
.tgeps .tgeps-gallery-title h2 em{
  color:#F5F5F5;
  text-decoration:underline;
  text-decoration-color:#8F2D56;
  text-decoration-thickness:.06em;
  text-underline-offset:.13em;
}
.tgeps .tgeps-hero-writing .tgeps-kicker,
.tgeps .tgeps-hero-introline,
.tgeps .tgeps-hero-mosaic-stamp,
.tgeps .tgeps-minimal-scroll{
  color:var(--tgeps-wine-text,#E7CBD5);
}
