/* ================================================================
   PAGE: gallery.css
   Page-specific sections only; shared components live in ../components.
   ================================================================ */

     /*Gallery section*/
      .xg-master {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 28px 100px;
  }

  
  .xg-header {
    text-align: center;
    margin-bottom: 55px;
  }

  .xg-header span {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg,#E01C4E, #061B45);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
  }

  .xg-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-top: 12px;
    color: #E01C4E;
    position: relative;
    display: inline-block;
  }

  .xg-header h2:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #E01C4E, #061B45);
    border-radius: 4px;
  }

  .xg-sub {
    text-align: center;
    color: #4c5a6b;
    margin-top: 28px;
    font-weight: 400;
    font-size: 14px;
  }

  
  .xg-category {
    margin-bottom: 68px;
  }

  .category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 28px;
    padding-left: 12px;
    border-left: 5px solid #E01C4E;
    background: linear-gradient(120deg, #1f3b34, transparent);
    background-clip: text;
    -webkit-background-clip: text;
    color: #061B45;
    letter-spacing: -0.3px;
    display: inline-block;
  }

  
  .xg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  
  .xg-card {
    border-radius: 28px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    box-shadow: 0 18px 32px -12px rgba(0, 0, 0, 0.1);
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    opacity: 0;  
    will-change: transform, opacity;
  }

  
  .xg-grid .xg-card:nth-child(odd) {
    animation: slideFromLeft 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.1) forwards;
  }

  .xg-grid .xg-card:nth-child(even) {
    animation: slideFromRight 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.1) forwards;
  }

  
  .xg-grid .xg-card:nth-child(1) { animation-delay: 0.02s; }
  .xg-grid .xg-card:nth-child(2) { animation-delay: 0.08s; }
  .xg-grid .xg-card:nth-child(3) { animation-delay: 0.14s; }
  .xg-grid .xg-card:nth-child(4) { animation-delay: 0.20s; }

  @keyframes slideFromLeft {
    0% {
      opacity: 0;
      transform: translateX(-70px);
      filter: blur(3px);
    }
    60% { filter: blur(0); }
    100% {
      opacity: 1;
      transform: translateX(0);
      filter: blur(0);
    }
  }

  @keyframes slideFromRight {
    0% {
      opacity: 0;
      transform: translateX(70px);
      filter: blur(3px);
    }
    60% { filter: blur(0); }
    100% {
      opacity: 1;
      transform: translateX(0);
      filter: blur(0);
    }
  }

  
  .xg-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.2, 0.85, 0.4, 1);
    display: block;
    pointer-events: none; 
  }

  .xg-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 28px 38px -12px rgba(0, 0, 0, 0.22);
  }

  .xg-card:hover img {
    transform: scale(1.07);
  }

  
  .xg-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 28, 34, 0.94);
    backdrop-filter: blur(24px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
  }

  .xg-popup.active {
    opacity: 1;
    visibility: visible;
  }

  .xg-popup img {
    max-width: 92%;
    max-height: 92%;
    width: auto;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 35px 55px rgba(0, 0, 0, 0.5);
    transform: scale(0.94);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2), opacity 0.35s ease;
    cursor: default;
    object-fit: contain;
    background: #10262b;
    border: 2px solid rgba(255,255,240,0.25);
  }

  .xg-popup.active img {
    transform: scale(1);
    opacity: 1;
  }

  .xg-close {
    position: absolute;
    top: 32px;
    right: 42px;
    font-size: 48px;
    font-weight: 300;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.55);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
    font-family: monospace;
    z-index: 1001;
  }

  .xg-close:hover {
    background: #ff4d6d;
    transform: rotate(90deg);
    color: white;
  }

  
  @media (max-width: 1100px) {
    .xg-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
    .xg-card img {
      height: 240px;
    }
  }

  @media (max-width: 768px) {
    .xg-master {
      padding: 40px 20px 70px;
    }
    .xg-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }
    .xg-header h2 {
      font-size: 2.2rem;
    }
    .category-title {
      font-size: 1.6rem;
    }
    .xg-card img {
      height: 210px;
    }
    .xg-close {
      top: 20px;
      right: 20px;
      width: 48px;
      height: 48px;
      font-size: 40px;
    }
  }

  @media (max-width: 540px) {
    .xg-grid {
      grid-template-columns: 1fr;
      gap: 24px;
    }
    .xg-card img {
      height: 250px;
    }
    .xg-header h2 {
      font-size: 1.9rem;
    }
    .category-title {
      font-size: 1.4rem;
      border-left-width: 5px;
    }
  }

  
  .xg-category {
    animation: fadeUp 0.6s ease forwards;
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
   /*Gallery section END*/

/* ================================================================
   PAGE-LEVEL VISUAL POLISH
   This source is appended to each isolated page stylesheet.
   ================================================================ */

/* Smooth, accessible interaction feedback */
a,
button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(214, 168, 75, 0.9);
  outline-offset: 3px;
}

/* Media presentation remains contained within its own page */
img {
  height: auto;
}

/* Prevent long labels, links, and table content from breaking layouts */
p,
li,
td,
th,
a {
  overflow-wrap: break-word;
}

/* Refined motion where the visitor allows animation */
@media (prefers-reduced-motion: no-preference) {
  img,
  a,
  button {
    transition-duration: 220ms;
    transition-timing-function: ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .mp-top-strip,
  .mp-main-header,
  .mp-mobile-menu,
  .mp-overlay,
  .apply-now,
  .whatsapp {
    display: none !important;
  }
}
