/* ================================
   MODAL SCROLL PREVENTION
   ================================ */
/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden !important;
  touch-action: none !important;
}

html.modal-open {
  overflow: hidden !important;
}

/* ================================
   LOTTIE ANIMATION CONTAINER
   ================================ */
/* Main container for Lottie animations with responsive sizing */
#lottieInline {
  width: 100%;
  max-width: 600px;
  display: block;
  position: relative;
}

/* Fade overlay for smooth transitions between Lottie animations */
#lottieInline .fade-overlay {
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Active state for fade overlay - becomes visible during transitions */
#lottieInline.fade-active .fade-overlay {
  opacity: 1;
}

/* ================================
     LOGO MODAL LAYOUT & STRUCTURE
     ================================ */
/* Logo Modal Specific Styles */
.logo-modal .modal-dialog {
  max-width: 1100px;
  width: 95%;
  margin: 1.5rem auto;
}

/* Main modal container with fixed height and shadow */
.logo-modal .modal-content {
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: visible;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 610px;
}

/* ================================
     MODAL HEADER & NAVIGATION
     ================================ */
/* Header - can be hidden for logo category */
.logo-modal__header {
  padding: 0;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  flex-shrink: 0;
  pointer-events: none;
}

/* Enable pointer events for header child elements */
.logo-modal__header * {
  pointer-events: auto;
}

/* Body - centers content in the available space */
.logo-modal__body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  background: #c7c7c7;
  overflow: hidden;
  padding: 0;
  height: 100%;
}

/* ================================
     MODAL CONTENT SECTIONS
     ================================ */
/* Category row styling with semi-transparent background */
.logo-modal__category-row {
  padding: 16px 35px 5px;
  background: rgb(131 130 130 / 37%);
  border-bottom: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* Category title typography */
.logo-modal__category {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: #1a1919;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Next button styling with hover effects */
.logo-modal__next-btn {
  background: transparent;
  border: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #5b5b5b;
  letter-spacing: 4px;
  cursor: pointer;
  transition: color 0.2s;
}

.logo-modal__next-btn:hover {
  color: #333;
}

/* Information row layout for title and subtitle */
.logo-modal__info-row {
  padding: 8px 35px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Main title styling */
.logo-modal__title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px !important;
  font-weight: 500 !important;
  color: #1c1a1a !important;
  margin: 0;
  line-height: 1.4;
}

/* Subtitle styling with italic emphasis */
.logo-modal__subtitle {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #000 !important;
  font-style: italic !important;
  margin: 0;
  line-height: 1.4;
}

/* ================================
     DEVICE CONTAINER & VIEWERS
     ================================ */
/* Main device container for centering content */
.logo-modal__device-container {
  display: flex;
  align-items: center;
  padding-top: 21px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: static;
  flex-shrink: 0;
}

/* ================================
     PLAIN VIEWER (NO DEVICE FRAME)
     ================================ */
/* Plain viewer (no device frame) - used for brochures like Caesars, BJK */
.logo-modal__device-container.device-plain {
  flex-direction: column;
  max-width: 500px;
}

/* Basic plain viewer layout */
.logo-modal__device-container.device-plain .plain-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  position: relative;
  padding-top: 40%;
}

/* Image positioning within plain viewer */
.logo-modal__device-container.device-plain .plain-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}

/* ================================
     EMPLOYEE COMMUNICATIONS STYLES
     ================================ */
/* Employee Communications container and viewer sizing */
.logo-modal__device-container.project-employee_communications.device-plain {
  max-width: var(--plain-container-max-width, 1100px);
  flex-direction: column;
}

/* Employee Communications plain viewer layout */
.logo-modal__device-container.project-employee_communications.device-plain .plain-viewer {
  width: var(--employee-plain-viewer-width, 100%);
  padding-top: var(--employee-plain-viewer-padding-top, 50%);
  margin-top: var(--employee-plain-viewer-margin-top, 0);
  margin-left: var(--employee-plain-viewer-margin-left, 0);
}

/* Merck Production Improvement Guide - custom layout within Employee Communications */
.logo-modal__device-container.project-employee_communications.device-plain.merck-production .plain-viewer {
  padding-top: 33%;
}

.logo-modal__device-container.project-employee_communications.device-plain.merck-production .plain-viewer.is-spread.slide-0 {
  margin-top: 10%;
  margin-left: 10%;
}

/* Employee Communications image styling with 3D transform (matching Harrah's) */
.logo-modal__device-container.project-employee_communications.device-plain .plain-viewer img {
  object-fit: cover;
  transform: rotateY(-8deg) rotateX(2deg);
  border-radius: 4px;
}

/* Hess Learning Icon System - shift viewer left while extending width to fill right edge */
.logo-modal__device-container.project-employee_communications.hess-learning-icons.device-plain .plain-viewer {
  margin-left: -10px;
  width: calc(100% + 40px);
}

/* Anchor image from left so left content stays fixed, right side clips/reveals */
.logo-modal__device-container.project-employee_communications.hess-learning-icons.device-plain .plain-viewer img {
  object-position: left center;
}

/* Employee Communications container with indicators spacing */
.logo-modal__device-container.project-employee_communications.device-plain.has-indicators {
  gap: 20px;
}

/* ================================
     MISC PROJECTS STYLES
     ================================ */
/* Misc Projects container - no max-width constraint */
.logo-modal__device-container.project-misc_projects.device-plain {
  flex-direction: column;
  max-width: 100%;
}

/* Misc Projects plain viewer - wider display */
.logo-modal__device-container.project-misc_projects.device-plain .plain-viewer {
  width: 50%;
}

/* Misc Projects image styling */
.logo-modal__device-container.project-misc_projects.device-plain .plain-viewer img {
  object-fit: contain;
}

/* Misc Projects with indicators spacing */
.logo-modal__device-container.project-misc_projects.device-plain.has-indicators {
  gap: 20px;
}

/* Maggiore Centro Stile - wider plain viewer */
.logo-modal__device-container.project-misc_maggiore.device-plain {
  flex-direction: column;
  max-width: 100%;
}

.logo-modal__device-container.project-misc_maggiore.device-plain .plain-viewer {
  width: 65%;
}

.logo-modal__device-container.project-misc_maggiore.device-plain .plain-viewer img {
  object-fit: contain;
}

.logo-modal__device-container.project-misc_maggiore.device-plain.has-indicators {
  gap: 20px;
}

/* ================================
     PACKAGING STYLES
     ================================ */

/* --- packaging (single-slide: Killer Queen, Celine) --- */
/* Width and margin-top are project-wise via CSS variables (--plain-container-width, --plain-container-margin-top) */
.logo-modal__device-container.project-packaging.device-plain {
  flex-direction: column;
  width: var(--plain-container-width, 100%);
  margin-top: var(--plain-container-margin-top, 0);
  max-width: 900px;
}

/* Coty Katy Perry Killer Queen: plain-viewer width (only this project) */
.logo-modal__device-container.project-packaging.device-plain.killer-queen .plain-viewer {
  width: 55%;
}

.logo-modal__device-container.project-packaging.device-plain .plain-viewer img {
  object-fit: contain;
}

/* Killer Queen packaging - add small left margin only for this project */
.logo-modal__device-container.project-packaging.device-plain.killer-queen {
  margin-left: 14%;
}

/* --- packaging_multi (multi-slide: Beyonce, Pride) --- */
/* Width and margin-top are project-wise via CSS variables (--plain-container-width, --plain-container-margin-top) */
.logo-modal__device-container.project-packaging_multi.device-plain {
  flex-direction: column;
  width: var(--plain-container-width, 100%);
  margin-top: var(--plain-container-margin-top, 0);
  max-width: 100%;
}

/* slide-0 (image1): no width override, inherits base plain-viewer */
.logo-modal__device-container.project-packaging_multi.device-plain .plain-viewer.slide-0 {
  width: 100%;
}

/* slide-1 (image2): wider display */
.logo-modal__device-container.project-packaging_multi.device-plain .plain-viewer.slide-1 {
  width: 70%;
}

.logo-modal__device-container.project-packaging_multi.device-plain .plain-viewer img {
  object-fit: contain;
}

.logo-modal__device-container.project-packaging_multi.device-plain.has-indicators {
  gap: 20px;
}

/* Pride & Glory packaging - plain-viewer padding-top only for this project */
.logo-modal__device-container.project-packaging_multi.device-plain.packaging-pride .plain-viewer {
  padding-top: 50%;
}

/* ================================
     ADVERTISING STYLES
     ================================ */

/* --- advertising (single-slide) --- */
.logo-modal__device-container.project-advertising.device-plain {
  flex-direction: column;
  max-width: unset;
  width: var(--plain-container-width, 100%);
  padding-top: var(--plain-container-padding-top, 82px);
  background: var(--plain-container-bg, transparent);
}

.logo-modal__device-container.project-advertising.device-plain .plain-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: var(--plain-viewer-width, 50%);
  padding-top: var(--plain-viewer-width, 50%);
}

.logo-modal__device-container.project-advertising.device-plain .plain-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}

/* --- advertising_multi (Davis Warshow - 2 slides) --- */
.logo-modal__device-container.project-advertising_multi.device-plain {
  flex-direction: column;
  max-width: unset;
  width: var(--plain-container-width, 100%);
  padding-top: var(--plain-container-padding-top, 82px);
  background: var(--plain-container-bg, transparent);
}

.logo-modal__device-container.project-advertising_multi.device-plain .plain-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: var(--plain-viewer-width, 65%);
  padding-top: var(--plain-viewer-width, 65%);
}

.logo-modal__device-container.project-advertising_multi.device-plain .plain-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}

.logo-modal__device-container.project-advertising_multi.device-plain.has-indicators {
  gap: 20px;
}

/* ================================
     INFOGRAPHICS STYLES
     ================================ */
/* Width and margin-top are scoped to infographics only via CSS variables set per project in JS */
.logo-modal__device-container.project-infographics.device-plain {
  flex-direction: column;
  width: var(--plain-container-width, 100%);
  margin-top: var(--plain-container-margin-top, 0);
  max-width: 1000px;
  /* max-width: 900px; */
}

.logo-modal__device-container.project-infographics.device-plain .plain-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: var(--plain-viewer-width, 100%);
  padding-top: 56%;
}

.logo-modal__device-container.project-infographics.device-plain .plain-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}

.logo-modal__device-container.project-infographics.device-plain.has-indicators {
  gap: 20px;
}

/* Live Nation infographic - left margin only for this project */
.logo-modal__device-container.project-infographics.device-plain.infographics-live-nation {
  margin-left: 14%;
}

/* Hess API infographic - left margin only for this project */
.logo-modal__device-container.project-infographics.device-plain.infographics-hess-api {
  margin-left: 10%;
}

/* ================================
     PRINT STYLES
     ================================ */
.logo-modal__device-container.project-print.device-plain {
  flex-direction: column;
  width: var(--plain-container-width, 100%);
  margin-top: var(--plain-container-margin-top, 0);
  max-width: 900px;
}

.logo-modal__device-container.project-print.device-plain .plain-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding-top: 56%;
}

/* M3 Partners: taller image area (only this project) */
.logo-modal__device-container.project-print.device-plain.m3-partners .plain-viewer {
  width: 115%;
}

.logo-modal__device-container.project-print.device-plain .plain-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}

.logo-modal__device-container.project-print.device-plain.has-indicators {
  gap: 20px;
}

/* Hess Leadership Book - wider print container without affecting other print projects */
.logo-modal__device-container.project-print.device-plain.print-hess-book {
  max-width: 1100px;
}

/* Ferguson Developer Booklet - max-width and plain-viewer width only for this print project */
.logo-modal__device-container.project-print.device-plain.print-ferguson {
  max-width: 1100px;
}
.logo-modal__device-container.project-print.device-plain.print-ferguson .plain-viewer {
  width: 106%;
}

/* ================================
     EVENTS STYLES
     ================================ */
.logo-modal__device-container.project-events.device-plain {
  flex-direction: column;
  width: var(--plain-container-width, 100%);
  margin-top: var(--plain-container-margin-top, 0);
  max-width: 900px;
}

.logo-modal__device-container.project-events.device-plain .plain-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding-top: 56%;
}

.logo-modal__device-container.project-events.device-plain .plain-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}

.logo-modal__device-container.project-events.device-plain.has-indicators {
  gap: 20px;
}

/* Hess Exploration - adjust left margin without affecting other events */
.logo-modal__device-container.project-events.device-plain.hess-exploration {
  margin-left: 25%;
}

/* Hess 2022 Conference - wider container without affecting other events */
.logo-modal__device-container.project-events.device-plain.hess-2022-conference {
  max-width: 1100px;
}

/* 2019 Leadership - add left margin without affecting other events */
.logo-modal__device-container.project-events.device-plain.leadership-2019 {
  margin-left: 11%;
}

/* Rockefeller event - slightly wider viewer with left offset */
.logo-modal__device-container.project-events.device-plain.rockefeller-event .plain-viewer {
  width: 105%;
  margin-left: 7%;
}

/* HR Conference - narrower container without affecting other events */
.logo-modal__device-container.project-events.device-plain.hr-conference {
  max-width: 1100px;
}

/* ================================
     PROJECT-SPECIFIC CUSTOMIZATIONS
     ================================ */

/* ===== URW PROJECT STYLES ===== */
/* URW only */
.logo-modal__device-container.project-urw_bid.device-plain .plain-viewer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 85% !important;
  position: relative !important;
  padding-top: 55% !important;
}

.logo-modal__device-container.project-urw_bid.device-plain .plain-viewer img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  position: absolute !important;
  inset: 0 !important;
}

/* URW per-slide sizing - individual slide customizations */
.logo-modal__device-container.project-urw_bid.device-plain .plain-viewer.slide-0 {
  width: var(--plain-container-width, 100%) !important;
  padding-top: 55% !important;
}

.logo-modal__device-container.project-urw_bid.device-plain .plain-viewer.slide-1 {
  width: var(--plain-container-width, 100%) !important;
  padding-top: 55% !important;
}

.logo-modal__device-container.project-urw_bid.device-plain .plain-viewer.slide-2 {
  width: var(--plain-container-width, 80%) !important;
  padding-top: 55% !important;
}

.logo-modal__device-container.project-urw_bid.device-plain .plain-viewer.slide-3 {
  width: var(--plain-container-width, 100%) !important;
  padding-top: 55% !important;
}

.logo-modal__device-container.project-urw_bid.device-plain .plain-viewer.slide-4 {
  width: var(--plain-container-width, 100%) !important;
  padding-top: 55% !important;
}

.logo-modal__device-container.project-urw_bid.device-plain .plain-viewer.slide-5 {
  width: var(--plain-container-width, 100%) !important;
  padding-top: 55% !important;
}

/* URW container max width */
.logo-modal__device-container.project-urw_bid.device-plain {
  max-width: 1200px;
}

/* ===== CAESARS PROJECT STYLES ===== */
/* Caesars only - container and viewer sizing */
.logo-modal__device-container.project-caesars.device-plain {
  max-width: 900px;
}

.logo-modal__device-container.project-caesars.device-plain .plain-viewer {
  width: 100%;
  padding-top: 32%;
}

/* Caesars image styling with 3D transform effects */
.logo-modal__device-container.project-caesars.device-plain .plain-viewer img {
  object-fit: cover;
  box-shadow: none;
  filter: drop-shadow(-8px 18px 20px rgba(0, 0, 0, 0.35)) drop-shadow(-4px 10px 14px rgba(0, 0, 0, 0.25)) drop-shadow(-2px 4px 8px rgba(0, 0, 0, 0.2));
  transform: rotateY(-8deg) rotateX(2deg);
  border-radius: 4px;
}

/* Caesars Entertainment - first slide specific width */
.logo-modal__device-container.project-caesars.device-plain .plain-viewer.slide-0 {
  width: 53% !important;
}

/* ===== HARRAHS PROJECT STYLES ===== */
/* Harrahs only - remove top padding */
.logo-modal__device-container.project-harrahs {
  padding-top: 0 !important;
}

.logo-modal__device-container.project-harrahs.device-plain {
  max-width: 967px;
}

.logo-modal__device-container.project-harrahs.device-plain .plain-viewer {
  width: 100%;
  padding-top: 58%;
}

/* Harrahs image styling with 3D transform */
.logo-modal__device-container.project-harrahs.device-plain .plain-viewer img {
  object-fit: cover;
  transform: rotateY(-8deg) rotateX(2deg);
  border-radius: 4px;
}

/* ===== BJK PROJECT STYLES ===== */
/* BJK only - container and viewer setup */
.logo-modal__device-container.project-bjk.device-plain {
  max-width: 900px;
  padding-top: 50px;
}

.logo-modal__device-container.project-bjk.device-plain .plain-viewer {
  width: 100%;
  padding-top: 63%;
}

/* BJK image styling with animation and 3D transform */
.logo-modal__device-container.project-bjk.device-plain .plain-viewer img {
  max-height: 380px;
  box-shadow: none;
  transform: rotateY(-8deg) rotateX(2deg);
  border-radius: 4px;
  animation: bjkViewerFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* BJK specific slide sizing for first three slides */
.logo-modal__device-container.project-bjk.device-plain .plain-viewer.slide-0,
.logo-modal__device-container.project-bjk.device-plain .plain-viewer.slide-1,
.logo-modal__device-container.project-bjk.device-plain .plain-viewer.slide-2 {
  padding-top: 62%;
  width: 150%;
}

/* BJK container with indicators spacing */
.logo-modal__device-container.project-bjk.device-plain.has-indicators {
  gap: 15px;
}

/* ===== BJK STACKED COVER LAYOUT ===== */
/* Stacked cover layout for BJK brochure */
.logo-modal__device-container.project-bjk.device-plain .plain-viewer--stack {
  position: relative;
}

/* Reset transforms for stacked layout images */
.logo-modal__device-container.project-bjk.device-plain .plain-viewer--stack img {
  max-height: none;
  box-shadow: none;
  transform: none;
  border-radius: 0;
}

/* Background image positioning for stacked layout */
.logo-modal__device-container.project-bjk.device-plain .plain-viewer--stack .plain-viewer__bg {
  position: absolute;
  top: -79%;
  left: -155%;
  transform: translate(-50%, -50%);
  width: 394%;
  height: 248%;
  max-width: none;
  object-fit: contain;
  z-index: 1;
}

/* Adjusted positioning for slides 1 and 2 */
.logo-modal__device-container.project-bjk.device-plain .plain-viewer--stack.slide-1 .plain-viewer__bg,
.logo-modal__device-container.project-bjk.device-plain .plain-viewer--stack.slide-2 .plain-viewer__bg {
  top: -49%;
  left: -125%;
  width: 350%;
  height: 187%;
}

/* ===== BJK TEXT OVERLAY ===== */
/* BJK Brochure - Text Overlay */
.logo-modal__device-container.project-bjk.device-plain .bjk-text-overlay {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 25px;
  border: 2px solid #e74c3c;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: left;
  line-height: 1.4;
  z-index: 10;
  cursor: pointer;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  pointer-events: auto;
  width: 400px;
  max-width: 80%;
}

/* BJK text overlay hover effects */
.logo-modal__device-container.project-bjk.device-plain .bjk-text-overlay:hover {
  background: rgba(255, 255, 255, 1);
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* BJK overlay title styling */
.logo-modal__device-container.project-bjk.device-plain .bjk-text-overlay .bjk-title {
  display: block;
  font-weight: 700;
  font-size: 18px;
  color: #333;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

/* BJK overlay link styling */
.logo-modal__device-container.project-bjk.device-plain .bjk-text-overlay .bjk-link {
  display: block;
  font-weight: 400;
  font-size: 16px;
  color: #666;
  font-style: italic;
  text-decoration: none;
}

/* =============================================
     NAVIGATION DOTS/INDICATORS
     Fixed at bottom of modal body
     ============================================= */
/* Hide indicators by default */
.logo-device-indicators {
  display: none;
}

/* Show indicators when container has 'has-indicators' class */
.logo-modal__body .has-indicators .logo-device-indicators {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 58px;
  gap: 10px;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

/* Individual indicator dot styling */
.logo-device-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #a5a9b1;
  opacity: 1;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}

/* Active indicator state */
.logo-device-indicators button.active {
  background: #a5a9b1;
}

/* Indicator hover state */
.logo-device-indicators button:hover {
  background: rgba(165, 169, 177, 0.5);
}

/* Frame (asurion) - indicators positioned at bottom */
.logo-modal__device-container.device-frame.has-indicators {
  position: static;
}

.logo-modal__device-container.device-frame.has-indicators .logo-device-indicators {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  transform: none;
  margin: 0;
}

/* ================================
     DEVICE-SPECIFIC STYLES
     ================================ */

/* ===== WESTROCK PROJECT STYLES ===== */
/* WESTROCK (project-only CSS) */
.logo-modal__device-container.project-westrock.device-frame .device__screen {
  box-sizing: border-box;
  padding-top: var(--project-screen-pad-top, 0px);
  padding-bottom: var(--project-screen-pad-bottom, 0px);
  padding-left: var(--project-screen-pad-left, 0px);
  padding-right: var(--project-screen-pad-right, 0px);
}

/* Westrock frame device screen positioning */
.logo-modal__device-container.project-westrock.device-frame .device__screen img {
  position: relative;
  left: 16%;
  top: 14%;
  width: 32%;
  height: 67%;
  object-position: center;
  object-fit: cover;
  display: block;
}

/* Westrock laptop screen styling with CSS custom properties */
.logo-modal__device-container.project-westrock.device-laptop .device__screen {
  --laptop-screen-top: 22.6471%;
  --laptop-screen-left: 29.50%;
  --laptop-screen-width: 42.6486%;
  --laptop-screen-height: 82.0022%;
  --laptop-screen-bg: #5b5b5b;
  --laptop-screen-overflow: hidden;
  --laptop-screen-z: 1;
}

/* ===== REFIND PROJECT STYLES ===== */
/* REFIND (project-only CSS) */
.logo-modal__device-container.project-refind.device-tablet .device__screen {
  top: var(--refind-tablet-top, calc(9.0072% - 2.45%));
  left: var(--refind-tablet-left, calc(5.931% - 2.45%));
  width: var(--refind-tablet-width, calc(88.2069% + -4.1%));
  height: var(--refind-tablet-height, calc(81.781% + 0.9%));
  box-sizing: border-box;
  padding-top: var(--refind-tablet-pad-top, 0px);
  padding-bottom: var(--refind-tablet-pad-bottom, 0px);
  padding-left: var(--refind-tablet-pad-left, 0px);
  padding-right: var(--refind-tablet-pad-right, 0px);
}

/* Refind tablet image positioning */
.logo-modal__device-container.project-refind.device-tablet .device__screen img {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 95% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* ================================
     DEVICE-NONE (NO FRAME) STYLES
     ================================ */
/* Container for images without device frames */
.logo-modal__device-container.device-none {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

/* Default logo image styling with fade-in animation */
.logo-modal__device-container.device-none .logo-modal__image {
  max-width: 460px;
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  animation: logoImageFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Brand Identity: (optional) show this slide image overlapping above header */
.logo-modal--brand-identity-image-above-header
  .logo-modal__device-container.device-none
  .logo-modal__image {
  position: relative;
  /* top: -165px; overlaps header; tweak if needed */
  z-index: 11;
  pointer-events: none; /* keep header clickable */
}

/* Reduce width for specific logos */
.logo-modal__device-container.device-none .logo-modal__image[src*="M3.png"] {
  max-width: 25%;
  width: auto;
  height: auto;
}

.logo-modal__device-container.device-none .logo-modal__image[src*="XXI.png"] {
  max-width: 30%;
  width: auto;
  height: auto;
}

/* AEPC1: allow the logo image to scale up to container size */
.logo-modal__device-container.device-none .logo-modal__image[src*="Logo.AEPC1.png"] {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ================================
     GENERAL DEVICE FRAME STYLES
     ================================ */
/* Base device container */
.logo-modal__device-container .device {
  position: relative;
  display: block;
  margin: 0 auto;
  z-index: 1;
}

/* Realistic 3D ground-plane shadow for mini laptop */
.logo-modal__device-container.device-mini_laptop .device::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -30px;
  height: 65px;
  background: radial-gradient(ellipse at center,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.5) 20%,
      rgba(0, 0, 0, 0.35) 40%,
      rgba(0, 0, 0, 0.15) 65%,
      rgba(0, 0, 0, 0) 90%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

/* Device frame image styling */
.logo-modal__device-container .device__frame {
  display: block;
  max-width: 100%;
  height: auto;
  width: auto;
  position: relative;
  z-index: 2;
}

/* Device screen area for content */
.logo-modal__device-container .device__screen {
  position: absolute;
  z-index: 1;
  overflow: hidden;
}

/* Images within device screens */
.logo-modal__device-container .device__screen img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Remove mask - not needed */
.logo-modal__device-container .device__mask {
  display: none;
}

/* ================================
     iMAC DEVICE STYLES
     ================================ */
/* iMac device - precise screen positioning */
.logo-modal__device-container.device-imac .device {
  position: relative;
  overflow: hidden;
}

/* iMac frame positioning */
.logo-modal__device-container.device-imac .device__frame {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
  pointer-events: none;
  margin-top: -4%;
}

/* iMac screen area with precise positioning */
.logo-modal__device-container.device-imac .device__screen {
  position: absolute;
  top: 13.3715%;
  left: 29.2857%;
  width: 40.3929%;
  height: 49.3688%;
  overflow: hidden;
  z-index: 1;
}

/* iMac screen image positioning */
.logo-modal__device-container.device-imac .device__screen img {
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

/* ===== PROJECT-SPECIFIC iMAC OVERRIDES ===== */
/* PBIRx override - hide content gaps for iMac device */
.logo-modal__device-container.project-pbirx.device-imac .device__screen {
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  box-sizing: content-box !important;
}

.logo-modal__device-container.project-pbirx.device-imac .device__screen img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Spears/Abacus override - hide content gaps for iMac device */
.logo-modal__device-container.project-spears_abacus.device-imac .device__screen {
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  box-sizing: content-box !important;
}

.logo-modal__device-container.project-spears_abacus.device-imac .device__screen img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* ===== iMAC SCROLLABLE SCREEN ===== */
/* iMac scrollable - limit scroll to actual image content */
.logo-modal__device-container.device-imac .device__screen.scrollable-screen {
  overflow-y: auto;
  overflow-x: hidden;
}

.logo-modal__device-container.device-imac .device__screen.scrollable-screen img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top center;
  padding: 0 44px;
  background: #9a9696;
}

/* ================================
     LAPTOP/MACBOOK DEVICE STYLES
     ================================ */
/* Laptop/MacBook device - precise screen positioning */
.logo-modal__device-container.device-laptop .device__screen {
  top: var(--laptop-screen-top, 19%);
  left: var(--laptop-screen-left, 29%);
  width: var(--laptop-screen-width, 43%);
  height: var(--laptop-screen-height, 93%);
  overflow: var(--laptop-screen-overflow, hidden);
  z-index: var(--laptop-screen-z, 1);
  box-sizing: content-box;
}

/* ===== PROJECT-SPECIFIC LAPTOP OVERRIDES ===== */
/* BLMIS website: keep custom positioning */
.logo-modal__device-container.project-blmis.device-laptop .device__screen {
  top: 23%;
  left: 29%;
  width: 44%;
  height: 56%;
}

/* JCF website: keep custom positioning */
.logo-modal__device-container.project-jcf.device-laptop .device__screen {
  top: 23%;
  left: 28%;
  width: 45%;
  height: 78%;
}

/* SIPC override - enable scrolling */
.logo-modal__device-container.project-sipc.device-laptop .device__screen {
  top: 22% !important;
  height: 151% !important;
  overflow: auto !important;
}

/* JC Flowers override - hide content gaps */
.logo-modal__device-container.project-jc_flowers.device-laptop .device__screen {
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  box-sizing: content-box !important;
}

.logo-modal__device-container.project-jc_flowers.device-laptop .device__screen img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* ===== LAPTOP CONTENT GAPS HANDLING ===== */
/* When contentGaps are applied */
.logo-modal__device-container.device-laptop .device__screen.has-content-gaps {
  display: block;
}

.logo-modal__device-container.device-laptop .device__screen.has-content-gaps img {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.logo-modal__device-container.device-laptop .device__screen.has-content-gaps.scrollable-screen img {
  height: auto !important;
  max-height: none !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: top center !important;
}

/* ================================
     MINI LAPTOP DEVICE STYLES
     ================================ */
/* Mini Laptop device (custom asset) */
.logo-modal__device-container.device-mini_laptop .device {
  overflow: hidden;
  max-height: 390px;
}

.logo-modal__device-container.device-mini_laptop .device__frame {
  max-height: 390px;
  z-index: 10;
  pointer-events: none;
}

/* Mini laptop screen positioning */
.logo-modal__device-container.device-mini_laptop .device__screen {
  top: 25.7143%;
  left: 28.5112%;
  width: 43.9607%;
  height: 55.7143%;
  background: #000;
  overflow: hidden;
  z-index: 1;
}

/* ================================
     FRAME DEVICE STYLES (ASURION)
     ================================ */
/* Frame device (asurion) */
.logo-modal__device-container.device-frame .device {
  overflow: hidden;
  width: var(--frame-device-width, 1200px);
  height: 50%;
}

.logo-modal__device-container.device-frame .device__frame {
  position: relative;
  z-index: 10;
  pointer-events: none;
  max-height: 520px;
  width: 100% !important;
  height: 100%;
}

/* Frame device screen positioning */
.logo-modal__device-container.device-frame .device__screen {
  top: 21.0476%;
  left: 25.5229%;
  width: 50%;
  height: 31.0301%;
  background: transparent;
  overflow: hidden;
  z-index: 1;
}

.logo-modal__device-container.device-frame .device__screen img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  background: transparent;
  height: 100%;
  top: 0;
}

/* ================================
     TABLET DEVICE STYLES
     ================================ */
/* Tablet device */
.logo-modal__device-container.device-tablet .device {
  overflow: hidden;
  max-height: 420px;
  width: min(100%, 524px);
  margin-left: 320px;
}

.logo-modal__device-container.device-tablet .device__frame {
  max-height: 420px;
}

/* Estée Lauder eNewsletter – vertical tablet: rotate device shell 90deg; size wrapper so full device is visible */
.logo-modal__device-container.enews-vertical.device-tablet .device {
  width: 520px;
  min-height: 520px;
  max-height: none;
  margin-left: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 25%;
  margin-top: 7%;
}

.logo-modal__device-container.enews-vertical.device-tablet .device__frame {
  transform: rotate(90deg) scaleY(-1);
  transform-origin: center center;
  flex-shrink: 0;
}

/* eNewsletter only – override tablet screen position/size (does not affect other projects) */
.logo-modal__device-container.enews-vertical.device-tablet .device__screen {
  top: var(--tablet-screen-top, calc(27.0072% - 21.5%));
  left: var(--tablet-screen-left, calc(5.931% - -16.55%));
  width: var(--tablet-screen-width, calc(56.2069% + -4.1%));
  height: var(--tablet-screen-height, calc(81.781% + -28.1%));
  background: transparent;
}

/* Tablet screen positioning with CSS custom properties */
.logo-modal__device-container.device-tablet .device__screen {
  top: var(--tablet-screen-top, calc(9.0072% - 0.5%));
  left: var(--tablet-screen-left, calc(5.931% - 2.45%));
  width: var(--tablet-screen-width, calc(88.2069% + -2.1%));
  height: var(--tablet-screen-height, calc(81.781% + -3.1%));
  background: transparent;
}

/* Lauder Video (Employee Communications) – tablet screen positioning only for this project */
.logo-modal__device-container.device-tablet.lauder-video .device__screen {
  top: var(--tablet-screen-top, calc(9.0072% - -0.5%));
  left: var(--tablet-screen-left, calc(5.931% - 2.45%));
  width: var(--tablet-screen-width, calc(82.2069% + -2.1%));
  height: var(--tablet-screen-height, calc(81.781% + -45.1%));
  background: transparent;
}

.logo-modal__device-container.device-tablet .device__screen:not(.scrollable-screen) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================
     FRAME DEVICE PROJECT OVERRIDES
     ================================ */
/* Merck Posters (Employee Communications) – project-specific hook for frame screen */
.logo-modal__device-container.device-frame.merck-posters .device__screen {
  top: 22.0476%;
  left: 25.5229%;
  width: 49%;
  height: 27.0301%;
}

/* ===== ARCTARIS PROJECT TABLET OVERRIDE ===== */
/* Arctaris override - tablet screen styling */
.logo-modal__device-container.project-arctaris.device-tablet .device__screen {
  top: calc(9.0072% - 0.45%);
  left: calc(5.931% - 0.45%);
  width: calc(88.2069% + 0.9%);
  height: calc(81.781% + 0.9%);
  box-sizing: border-box;
}

.logo-modal__device-container.project-arctaris.device-tablet .device__screen img {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* ================================
     SCROLLABLE SCREEN FUNCTIONALITY
     ================================ */
/* Scrollable website image inside device */
.logo-modal__device-container .device__screen.scrollable-screen {
  cursor: ns-resize;
  touch-action: none;
  overflow-y: auto;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none;
  padding-bottom: 0;
  padding-left: 0 !important;
  background: none !important;
  padding-right: 0 !important;
}

/* Hide scrollbars in scrollable screens */
.logo-modal__device-container .device__screen.scrollable-screen::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Images within scrollable screens */
.logo-modal__device-container .device__screen.scrollable-screen img {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: auto;
  display: block;
  transform: none !important;
}

/* ===== LAPTOP DEVICE SPECIFIC ANIMATIONS ===== */
/* Laptop device specific smooth animation and positioning */
.logo-modal__device-container.device-laptop .device__screen img {
  position: relative;
  top: 0%;
  left: -4px;
  width: 100%;
  height: 256%;
  object-fit: contain;
  object-position: center;
  display: block;
  animation: websiteFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fade overlay for scrollable screens */
.logo-modal__device-container .device__screen.scrollable-screen::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  pointer-events: none;
  z-index: 5;
}

/* Hide fade overlay when content gaps are present */
.logo-modal__device-container .device__screen.scrollable-screen.has-content-gaps::after {
  display: none;
}

/* Default logo image sizing */
.logo-modal__image {
  max-width: 300px;
  max-height: 260px;
  object-fit: contain;
}

/* ================================
     MODAL NAVIGATION CONTROLS
     ================================ */
/* Navigation arrows for modal content */
.logo-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 60px;
  font-weight: 100;
  color: #999;
  cursor: pointer;
  padding: 20px;
  line-height: 1;
  transition: color 0.2s;
  z-index: 50;
  pointer-events: auto;
}

/* Previous navigation button */
.logo-modal__nav--prev {
  left: 10px;
}

/* Next navigation button */
.logo-modal__nav--next {
  right: 10px;
}

/* Navigation hover state */
.logo-modal__nav:hover {
  color: #666;
}

/* ================================
     MODAL CLOSE BUTTON
     ================================ */
/* Close button for logo and deck modals */
.logo-modal__close,
.deck-modal__close {
  position: absolute;
  top: clamp(-44px, -4vw, -24px);
  right: clamp(-44px, -4vw, -24px);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #FFF;
  cursor: pointer;
  z-index: 1000;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

/* Close button hover effects */
.logo-modal__close:hover,
.deck-modal__close:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  opacity: 0.9;
  background: transparent;
}

/* Brand Identity only: light header/body makes a white ring hard to see — darker backing, same X */
.logo-modal.logo-modal--brand-identity .logo-modal__close {
  background: rgba(0, 0, 0, 0.42);
  border: 2px solid rgba(255, 255, 255, 0.92);
  opacity: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.logo-modal.logo-modal--brand-identity .logo-modal__close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.52);
  border-color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* Close button focus state for accessibility */
.logo-modal__close:focus-visible,
.deck-modal__close:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.45);
  outline-offset: 3px;
}

/* Close button X icon - first line */
.logo-modal__close::before,
.logo-modal__close::after,
.deck-modal__close::before,
.deck-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: #FFF;
  border-radius: 2px;
  transform-origin: center;
}

/* Close button X icon - diagonal lines */
.logo-modal__close::before,
.deck-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.logo-modal__close::after,
.deck-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ================================
     ANIMATION KEYFRAMES & CLASSES
     ================================ */

/* ===== WEBSITE FADE ANIMATIONS ===== */
/* Gentle fade for website screenshots when changing slides */
@keyframes websiteFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes websiteFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.98);
  }
}

/* Website fade animation classes */
.website-fade-in {
  animation: websiteFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important;
}

.website-fade-out {
  animation: websiteFadeOut 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important;
}

.device__screen img.website-fade-in {
  animation: websiteFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.device__screen img.website-fade-out {
  animation: websiteFadeOut 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ===== LOGO IMAGE ANIMATIONS ===== */
@keyframes logoImageFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

/* Logo animation classes */
.logo-anim-in {
  animation: logoFadeIn 0.2s ease both;
}

.logo-anim-out {
  animation: logoFadeOut 0.15s ease both;
}

/* Logo transition overlay for smooth transitions */
.logo-transition-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}

/* ===== LOGO OUTER ANIMATIONS ===== */
@keyframes logoOuterIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoOuterOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
}

.logo-outer-in {
  animation: logoOuterIn 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.logo-outer-out {
  animation: logoOuterOut 0.22s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* ===== LOGO SLIDE ANIMATIONS ===== */
@keyframes logoSlideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 1;
    transform: translateX(-100%);
  }
}

@keyframes logoSlideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 1;
    transform: translateX(100%);
  }
}

@keyframes logoSlideInLeft {
  from {
    opacity: 1;
    transform: translateX(-100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes logoSlideInRight {
  from {
    opacity: 1;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Logo slide animation classes */
.logo-slide-out-left {
  animation: logoSlideOutLeft 0.6s ease-in-out both;
}

.logo-slide-out-right {
  animation: logoSlideOutRight 0.6s ease-in-out both;
}

.logo-slide-in-left {
  animation: logoSlideInLeft 0.6s ease-in-out both;
}

.logo-slide-in-right {
  animation: logoSlideInRight 0.6s ease-in-out both;
}

/* ===== PLAIN VIEWER & BJK ANIMATIONS ===== */
@keyframes plainViewerFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes bjkViewerFadeIn {
  from {
    opacity: 0;
    transform: rotateY(-8deg) rotateX(2deg) scale(0.96) translateY(8px);
  }

  to {
    opacity: 1;
    transform: rotateY(-8deg) rotateX(2deg) scale(1) translateY(0);
  }
}

/* ================================
     PORTFOLIO FILTER BUTTONS
     ================================ */
/* Main filter container with inline layout and separators */
.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 16px;
  opacity: 0;
  animation: fadeIn 1s ease-out 5.2s forwards;
}

/* Individual filter button styling - inline with separators */
.filter-btn {
  background: transparent;
  border: none;
  color: #232323;
  padding: 8px 14px;
  font-family: 'Ayuthaya', 'Libre', sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

/* Separator between filter buttons */
.filter-btn:not(:last-child):not(.active)::after {
  content: '|';
  position: absolute;
  right: 0;
  color: #232323;
  font-weight: 300;
  opacity: 0.5;
}

/* Hide separator before active button */
.filter-btn.active + .filter-btn::before {
  content: '';
  position: absolute;
  left: -1px;
  width: 1px;
  height: 100%;
}

/* Filter button hover state */
.filter-btn:hover {
  color: #e7168b;
}

/* Active filter button state - bright pink pill style */
.filter-btn.active {
  background: #e7168b;
  border-radius: 20px;
  color: #fff;
  padding: 8px 20px;
  font-weight: 600;
  margin: 0 4px;
}

/* Remove separator after active button */
.filter-btn.active::after {
  display: none;
}

/* Responsive filter button adjustments */
@media (max-width: 768px) {
  .portfolio-filter {
    gap: 0;
    justify-content: flex-start;
  }

  .filter-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .filter-btn.active {
    padding: 6px 16px;
  }
}

@media (max-width: 600px) {
  .filter-btn {
    padding: 5px 8px;
    font-size: 12px;
  }
  
  .filter-btn:not(:last-child):not(.active)::after {
    font-size: 12px;
  }
  
  .filter-btn.active {
    padding: 5px 14px;
  }
}

@media (max-width: 600px) {
  .filter-btn {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .filter-btn:not(:last-child)::after {
    font-size: 12px;
  }
}

/* ================================
     MODAL ARROW STYLING
     ================================ */
/* Modal navigation arrow sizing */
.modal_arrow {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* ================================
     EXTRA INFO SECTIONS
     ================================ */
/* Extra info row styling for projects like BJK */
.logo-modal__extra-info-row {
  padding: 5px 35px 15px 35px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
  border: none;
  margin: 0;
  gap: 5px;
}

/* Extra info title styling */
.logo-modal__extra-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: black;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Extra info link styling */
.logo-modal__extra-link {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  font-style: italic;
  margin: 0;
  line-height: 1.3;
}

.logo-modal__extra-link:hover {
  color: white;
  text-decoration: none;
}

/* Extra info link-style: no letter-spacing, no text-transform, custom color (only when .extra-link is set) */
.logo-modal__extra-info-row.extra-link .logo-modal__extra-title {
  letter-spacing: normal;
  text-transform: none;
  color: #0066cc;
}

.logo-modal__extra-info-row.extra-link .logo-modal__extra-link {
  color: #0066cc;
}

.logo-modal__extra-info-row.extra-link .logo-modal__extra-link:hover {
  color: #004499;
  text-decoration: none;
}

/* When extra-link style is shown, tighten info-row padding (only this case) */
.logo-modal__header:has(.logo-modal__extra-info-row.extra-link) .logo-modal__info-row {
  padding: 8px 35px 0px;
}

/* Extra title styling - inherits parent styles */
.logo-modal__extratitle {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  color: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

/* ================================
     PROJECT-SPECIFIC MODAL FILTERS
     ================================ */
/* Apply filter only for Refind and Arctaris projects in decks category */
.logo-modal--refind-arctaris .modal_arrow {
  filter: brightness(0.5) contrast(0.3);
}

.logo-modal--refind-arctaris .logo-device-indicators button {
  border-color: #6b7280;
}

.logo-modal--refind-arctaris .logo-device-indicators button.active {
  background: #6b7280;
}

.logo-modal--refind-arctaris .logo-device-indicators button:hover {
  background: rgba(107, 114, 128, 0.5);
}

/* Apply filter for Employee Communications projects */
/* Decks: subtitle (italic type) = regular weight, not bold */
.logo-modal--decks .logo-modal__subtitle {
  font-size: 15px !important;
  font-weight: 400 !important;
}

/* Packaging: match other screens – title bold, subtitle regular */
.logo-modal--packaging .logo-modal__title {
  font-weight: 500 !important;
}
.logo-modal--packaging .logo-modal__subtitle {
  font-weight: 400 !important;
}

.logo-modal--employee-communications .modal_arrow {
  filter: brightness(0.5) contrast(0.3);
}

.logo-modal--employee-communications .logo-device-indicators button {
  border-color: #6b7280;
}

.logo-modal--employee-communications .logo-device-indicators button.active {
  background: #6b7280;
}

.logo-modal--employee-communications .logo-device-indicators button:hover {
  background: rgba(107, 114, 128, 0.5);
}

/* ================================
      LAPTOP DEVICE FINAL OVERRIDES
      ================================ */
/* Laptop device specific smooth animation and positioning
      Note: exclude scrollable-screen so websites can use native scrolling rules */
.logo-modal__device-container.device-laptop .device__screen:not(.scrollable-screen) img {
  position: relative;
  top: 2%;
  left: 0px;
  width: 100%;
  height: 60%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: websiteFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ================================
   SITE FOOTER
   ================================ */
.site-footer {
  background: #000;
  color: #b8b8b8;
  border-top: 1px solid #2a2a2a;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.25;
  padding: 0;
}

/* Match main content width: .olo-hero__wrap / .portfolio__wrap (1180px + same side padding) */
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.55rem 20px 0.65rem;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.2rem;
}

@media (min-width: 768px) {
  .site-footer__inner {
    padding: 0.55rem 70px 0.65rem;
  }
}

.site-footer__col p {
  margin: 0;
  white-space: nowrap;
}

.site-footer__col p:last-child {
  margin-bottom: 0;
}

.site-footer__col--left {
  flex: 0 1 27%;
  text-align: left;
}

.site-footer__col--center {
  text-align: left;
  flex: 1 1 45%;
  min-width: 0;
}

.site-footer__col--right {
  flex: 0 1 28%;
  text-align: left;
}

.site-footer__link {
  color: #b8b8b8;
  text-decoration: none;
}

.site-footer__link:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .site-footer__inner {
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
    align-items: center;
    gap: 0.45rem;
  }

  .site-footer__col--left,
  .site-footer__col--center,
  .site-footer__col--right {
    text-align: center;
    flex: 1 1 100%;
  }

  .site-footer__col p {
    white-space: normal;
  }
}

/* Contact modal specific overrides */
#contactModal .modal-title {
  color: #fff !important;
}

#contactModal .btn-close {
  opacity: 1 !important;
  filter: invert(1) grayscale(100%) brightness(200%) !important;
}

#contactModal .btn-close:hover {
  opacity: 1;
}