/* Email design showcase — /email-marketing & /en/email-marketing
   Compact cropped preview cards (~280x400, 7/10) in a marquee.
   The full-length design only loads in the shared lightbox on demand. */
.es-sec{padding:72px 0;overflow:clip}
.es-head{max-width:1240px;margin:0 auto 40px;padding:0 32px}
.es-head .eyebrow{display:block;font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:#8a8780;margin-bottom:14px;font-weight:500}
.es-head h2{font-family:'Playfair Display',serif;font-weight:400;font-size:clamp(29px,3.7vw,49px);line-height:1.11;letter-spacing:-.02em;color:#1a1916;max-width:20ch}
.es-head p{color:#5a554c;font-size:16px;line-height:1.75;margin-top:16px;max-width:680px}

/* Marquee */
.es-marquee{position:relative;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;cursor:grab;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)}
.es-marquee::-webkit-scrollbar{display:none}
.es-marquee.es-dragging{cursor:grabbing}
.es-track{display:flex;align-items:flex-start;gap:22px;width:max-content;padding:22px 13px 30px;
  animation:es-scroll 90s linear infinite;will-change:transform}
.es-marquee:hover .es-track,.es-marquee:focus-within .es-track,.es-marquee.es-paused .es-track{animation-play-state:paused}
@keyframes es-scroll{to{transform:translateX(-50%)}}

/* Preview card — fixed 7/10 format, top-cropped thumbnail */
.es-card{flex:0 0 auto;width:280px;background:#fff;border:1px solid #e9e6df;border-radius:14px;
  overflow:hidden;padding:0;cursor:pointer;text-align:left;display:block;position:relative;
  box-shadow:0 18px 40px -30px rgba(26,25,22,.28);transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease}
.es-card:hover{transform:translateY(-6px);border-color:#dad4c6;box-shadow:0 30px 60px -38px rgba(26,25,22,.4)}
.es-card:focus-visible{outline:2px solid #1a1916;outline-offset:3px}
.es-card-bar{display:flex;align-items:center;gap:5px;height:26px;padding:0 12px;border-bottom:1px solid #f0ede6;background:#faf8f3}
.es-card-bar i{width:6px;height:6px;border-radius:50%;background:#ddd8cc}
.es-card-frame{display:block;aspect-ratio:7/10;overflow:hidden;position:relative}
.es-card-frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:top center}

/* Hover overlay: "Se hele emailen" / "View full email" */
.es-card::after{content:attr(data-view);position:absolute;left:50%;bottom:14px;transform:translate(-50%,8px);
  background:rgba(26,25,22,.88);color:#f6f4ef;font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  padding:9px 16px;border-radius:999px;white-space:nowrap;opacity:0;transition:opacity .25s ease,transform .25s ease;pointer-events:none}
.es-card:hover::after,.es-card:focus-visible::after{opacity:1;transform:translate(-50%,0)}
.es-card-frame::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 62%,rgba(26,25,22,.28));opacity:0;transition:opacity .25s ease;pointer-events:none}
.es-card:hover .es-card-frame::after,.es-card:focus-visible .es-card-frame::after{opacity:1}

/* Disclaimer note */
.es-note{max-width:1240px;margin:22px auto 0;padding:0 32px;color:#8a8780;font-size:13px;line-height:1.65}

/* Tablet */
@media(max-width:1080px){
  .es-card{width:clamp(220px,26vw,280px)}
}
/* Mobile: native swipe, no auto animation — ~1.2 cards visible */
@media(max-width:860px),(hover:none){
  .es-track{animation:none;padding:16px 22px 24px;gap:16px}
  .es-card{width:min(74vw,300px)}
  .es-sec{padding:56px 0}
  .es-head{padding:0 22px;margin-bottom:30px}
  .es-note{padding:0 22px}
}
/* Reduced motion: no auto marquee, manual scroll still works */
@media(prefers-reduced-motion:reduce){
  .es-track{animation:none}
  .es-card,.es-card::after,.es-card-frame::after{transition:none}
}
