html {
    scroll-behavior: smooth;
}
/* =========================================
   1. ANIMATED KERALA ART BACKGROUND
   ======================================== */
body {
    margin: 0;
    padding: 0;
    background-image: 
        radial-gradient(circle at 50% -10%, rgba(243, 240, 240, 0.2), transparent 60%),
        url('img/pattern.png');
    background-blend-mode: overlAay;
    background-size: cover, 350px;
    background-attachment: fixed;
    animation: culturalSlide 80s linear infinite;
    overflow-x: hidden;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
@keyframes culturalSlide {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 0, 1000px 1000px; }
}

/* =========================================
   2. HERO SECTION - AWESOME OVERLAY YOU LOVE
   ======================================== */
.gallery-hero {
    height: 80vh !important; /* LOCKED HEIGHT */
    position: relative !important;
    transform: none !important; /* BLOCK all transforms */
    min-height: 70vh !important;
    will-change: background-position; /* Optimize ONLY background */
    
    /* Your existing styles... */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 50px 20px 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(61, 10, 10, 0.8) 50%, 
        rgba(0, 0, 0, 0.7) 100%), 
        url('img/cult2.jpeg') center/cover no-repeat fixed;
}


/* Fix: ensure return button is clickable and sits closer to top (page-scoped) */
.gallery-hero .back-link {
  position: absolute;
  top: 36px;               /* reduced from 130px -> tune if you want it higher/lower */
  left: 20px;
  z-index: 9999;           /* place above header / overlays */
  pointer-events: auto;    /* ensure clickable */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fcf6ba;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(191,149,63,0.34);
  padding: 8px 14px;       /* lighter padding */
  border-radius: 10px;
  background: rgba(11,10,9,0.25);
  transition: transform .18s ease, background .18s ease, color .18s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* subtle hover */
.gallery-hero .back-link:hover {
  transform: translateY(-3px);
  background: rgba(191,149,63,0.15);
  color: #fff;
}

/* mobile tweak */
@media (max-width: 768px) {
  .gallery-hero .back-link { top: 18px; left: 12px; padding: 7px 12px; font-size: 0.85rem; }
}
.hero-text {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.reveal-text {
    margin: 0 0 20px 0;
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 900;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    
    background: linear-gradient(135deg, 
        #fcf6ba 0%, 
        #f4d03f 25%, 
        #bf953f 50%, 
        #f4d03f 75%, 
        #fcf6ba 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    text-shadow: 
        0 0 40px rgba(255, 215, 0, 0.8),
        0 5px 15px rgba(0, 0, 0, 0.9);
    
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.fade-in {
    margin: 0;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: rgba(252, 246, 186, 0.98);
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.9);
    line-height: 1.4;
}




/* ===========================================gallery */

/* --- Core Variables --- */
:root {
  --primary-color: #0a2e5c; /* Dark Academic Blue */
  --accent-color: #fffdfd; /* Elegant Gold */
  --text-color: #333;
  --light-gray: #000000;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #fff;
  color: var(--text-color);
}

/* --- Shining Gallery Header --- */
.header-section {
  padding: 100px 20px 40px;
  text-align: center;
  background: rgb(77, 75, 75);
}

.shining-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin: 0;
  display: inline-block;
  position: relative;
  margin-top: 65px;

  /* Shine gradient */
  background: linear-gradient(to right, #020202 20%, #dfd8d8 50%, #ece6e6 80%);

  background-size: 200% auto;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* IMPORTANT */
  animation: shine-animation 4s linear infinite;
}

/* 👇 FORCE LEFT → RIGHT */
@keyframes shine-animation {
  from {
    background-position: 200% center;
  }
  to {
    background-position: 0% center;
  }
}

.sub-heading {
  font-size: 5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-top: 80px;
  font-weight: 500;
}

:root {
  --gold-primary: #bf953f;
  --gold-light: #fcf6ba;
  --dark-bg: #0a0a0a; /* Change to your page background color */
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-stage {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* --- CENTERED HEADINGS --- */
.gallery-section {
  margin-bottom: 100px;
}

.section-heading {
  text-align: center;
  margin-bottom: 50px;
}
/* --- ELEGANT ACADEMIC HEADINGS --- */
.gallery-section .section-heading h2 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(32px, 4vw, 45px) !important;
  margin: 0;
  letter-spacing: 0,6px;
  text-transform: none;
  font-weight: 900;
}

.section-heading h2 span {
  display: block;
  font-size: 35px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 12px;

  /* Using a muted Slate Gray instead of Yellow */
  color: #555e6b;
  opacity: 0.9;
  -webkit-text-fill-color: initial;
}


.heading-underline {
  width: 60px;
  height: 3px;
  /* Keeping a tiny hint of gold here as a premium accent */
  background: #bf953f;
  margin: 18px auto 0;
  border-radius: 50px;
}
/* --- THE ROW GRID --- */
.gallery-row {
  display: grid;
  /* Forces 4 equal columns regardless of content */
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  align-items: start;
}

/* --- SQUARE PHOTO CARDS --- */
.photo-card {
  background: #151515;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  /* CRITICAL: Forces square shape for all cards */
  aspect-ratio: 1 / 1;
}

.img-wrapper {
  width: 100%;
  height: 100%;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  /* CRITICAL: Ensures images fill the square without stretching */
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.photo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(191, 149, 63, 0.2);
}

.photo-card:hover img {
  transform: scale(1.1);
}

/* --- PREMIUM VIEW ALL CARD --- */
.more-arrow-card {
  text-decoration: none;
  aspect-ratio: 1 / 1; /* Matches the images exactly */
  background: linear-gradient(145deg, #1a0505, #3d0a0a);
  border: 1px solid rgba(191, 149, 63, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.arrow-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.arrow-circle {
  width: 60px;
  height: 60px;
  background: var(--gold-primary);
  color: #1a0505;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--transition-smooth);
}

.view-text {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.category-text {
  color: rgba(252, 246, 186, 0.4);
  font-size: 0.7rem;
  text-transform: uppercase;
}

/* Hover effects for Arrow Card */
.more-arrow-card:hover {
  background: var(--gold-primary);
  transform: translateY(-10px);
}

.more-arrow-card:hover .arrow-circle {
  background: white;
  transform: rotate(-45deg);
}

.more-arrow-card:hover .view-text,
.more-arrow-card:hover .category-text {
  color: #1a0505;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1100px) {
  .gallery-row {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
  }
}

@media (max-width: 600px) {
  .gallery-row {
    grid-template-columns: 1fr; /* 1 per row on mobile */
  }
  .photo-card,
  .more-arrow-card {
    aspect-ratio: 4 / 3; /* Wider rectangles look better on small phones */
  }
  .section-heading h2 {
    font-size: 1.8rem;
  }
}


/* ================= SCOUTS & GUIDES PREMIUM SECTION ================= */

/* Fix for the Title styling */
.sg-header .section-title {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  color: #1d2a4d; /* Deep Navy */
  margin-bottom: 10px;
  position: relative;
  display: inline-block; /* Allows for the underline decoration */
}

/* Adding a gold underline "accent" under the title */
.sg-header .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #d4af37; /* Gold accent line */
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Subtitle adjustment */
.section-subtitle {
  font-family: "Inter", sans-serif;
  color: #555;
  font-size: 1.1rem;
  margin-top: 15px;
  letter-spacing: 0.5px;
}
.sg-premium-section {
  padding: 45px 0;
  background: #fdfdfd;
  overflow: hidden;
}

.sg-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Header Styling */
.sg-header {
  text-align: center;
  margin-bottom: 60px;
}

.sg-header h2 span {
  color: #1b4d3e;
  font-weight: 700;
}

/* Photo Grid: 4 in one row */
.sg-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.sg-card {
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 3px solid #fff;
}

.sg-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sg-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(27, 77, 62, 0.2);
}

.sg-card:hover img {
  transform: scale(1.1);
}

/* Feature Boxes */
.sg-features-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.sg-feature-box {
  display: flex;
  gap: 20px;
  padding: 5px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: 0.3s ease;
}

.sg-feature-box:hover {
  background: #f0f7f4;
  border-color: #1b4d3e;
}

.feat-icon {
  font-size: 2.2rem;
  color: #d4af37; /* Gold */
  flex-shrink: 0;
}

.feat-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #1d2a4d;
}

.feat-content p {
  font-size: 0.95rem !important;
  color: #555;
  line-height: 1.6;
}

/* Motto Bar */
.sg-motto-bar {
  margin-top: 60px;
  text-align: center;
  border-top: 2px dashed #ddd;
  padding-top: 30px;
}

.sg-motto-bar span {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 600;
  font-style: italic;
  color: #1b4d3e;
  letter-spacing: 2px;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* --- Mobile Fixes --- */
@media (max-width: 1024px) {
  .sg-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sg-features-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sg-photo-grid {
    grid-template-columns: 1fr;
  }
  .sg-features-container {
    grid-template-columns: 1fr;
  }
  .sg-motto-bar span {
    font-size: 1.5rem;
  }
}

/* ================= SCROLL ANIMATION ================= */
.scroll-animate .animate-item {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

.scroll-animate.show .animate-item {
  opacity: 1;
  transform: translateY(0);
}

/* stagger effect */
.scroll-animate.show .animate-item:nth-child(1) {
  transition-delay: 0.1s;
}
.scroll-animate.show .animate-item:nth-child(2) {
  transition-delay: 0.2s;
}
.scroll-animate.show .animate-item:nth-child(3) {
  transition-delay: 0.3s;
}
.scroll-animate.show .animate-item:nth-child(4) {
  transition-delay: 0.4s;
}
.scroll-animate.show .animate-item:nth-child(5) {
  transition-delay: 0.5s;
}
.scroll-animate.show .animate-item:nth-child(6) {
  transition-delay: 0.6s;
}

/* ------------------------------ */
/* Container setup to align items perfectly */
.gallery-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

/* The Arrow Card - Now completely transparent and "box-less" */
.more-arrow-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 140px;
  text-decoration: none;
  color: #fff;
  transition: all 0.4s ease;
  position: relative;
  background: transparent !important; /* Forces removal of any background */
  border: none !important;
  box-shadow: none !important;
}

/* The Arrow Icon - This holds the "Aura" and "Shine" */
.arrow-circle {
  font-size: 45px;
  color: #fad0c4; /* Soft peach color */
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  /* Creating the soft 'Aura' glow around the arrow shape */
  filter: drop-shadow(0 0 8px rgba(250, 208, 196, 0.4));
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* The Shine Effect - A glint that flashes across the arrow */
.arrow-circle::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transition: 0.6s;
}

/* Hover States */
.more-arrow-card:hover .arrow-circle {
  transform: translateX(10px) scale(1.1);
  color: #ff9a9e; /* Glow warms up on hover */
  filter: drop-shadow(0 0 15px rgba(255, 154, 158, 0.8)); /* Aura intensifies */
}

.more-arrow-card:hover .arrow-circle::after {
  left: 150%; /* The shine 'flashes' across */
}

/* Minimalist Text */
.more-arrow-card span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.more-arrow-card:hover span {
  opacity: 1;
}


/* /* =========================================
   3. ROYAL GOLDEN FRAMES & ART CARDS
   ======================================== */

.gallery-stage {
  padding: 30px 0;
  min-height: 100vh;
  background: #f6f8fb; /* light neutral */
  width: 100%;
}

.art-card {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    border: 10px solid;
    border-image-source: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    border-image-slice: 1;
    
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 
                inset 0 0 15px rgba(255, 215, 0, 0.2);
    overflow: hidden;
    cursor: pointer;
}
.art-card.active {
    opacity: 1;
    transform: translateY(0);
}

.art-card:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    transform: translateY(-15px) scale(1.02);
    z-index: 10;
}

.gallery-img {
    width: 100%;
    height: 100%; /* Force height to fill the card */
    aspect-ratio: 4 / 3; /* Keeps all boxes identical in size */
    object-fit: cover; /* This makes the image fill the frame without empty spaces */
    display: block;
    transition: transform 0.5s ease;
}
.art-card:hover .gallery-img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
} 
.reveal-hidden { opacity: 0; transform: translateY(30px); transition: all 1s ease-out; }
.reveal-active { opacity: 1; transform: translateY(0); }
/* =========================================
   4. PERFECTLY ORGANIZED GALLERY GRID
   ======================================== */
.full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 per row */
    gap: 15px; /* Adjust this if you want more or less space BETWEEN cards */
    width: 100%;
    max-width: 1400px; /* Limits width on huge monitors so it doesn't stretch too thin */
    margin: 0 auto;
    padding: 20px;
}
/* Info overlay on hover */
.img-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 25px;
    transition: 0.4s ease;
    color: white;
}

.art-card:hover .img-info {
    bottom: 0;
}

.img-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    color: #fcf6ba;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.img-info span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* =========================================
   5. MODAL STYLES
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal-glass {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 30px;
    max-width: 90%;
    margin: 40px auto;
    position: relative;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border: 5px solid;
    border-image: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728) 1;
    border-radius: 15px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fcf6ba;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.close-modal:hover {
    color: white;
    text-shadow: 0 0 10px gold;
}

#caption {
    margin: 25px auto 0;
    text-align: center;
    color: #fcf6ba;
    font-size: 1.6rem;
    max-width: 700px;
}

/* =========================================
   6. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .full-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
        padding: 0 20px;
    }
    
    .gallery-stage {
        padding: 60px 5%;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        height: 80vh;
        padding: 40px 15px 0;
    }
    
    .back-link {
        font-size: 0.9rem;
        padding: 14px 28px;
        margin-bottom: 40px;
    }
    
    .full-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }
    
    .gallery-img {
        height: 280px;
    }
    
    .gallery-stage {
        padding: 50px 5%;
    }
}

@media (max-width: 480px) {
    .gallery-hero {
        height: 55vh;
        padding: 30px 10px 0;
    }
    
    .back-link {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    .gallery-img {
        height: 250px;
    }
}

/* put this near your .full-grid / gallery-row styles */
.gallery-row {
    /* create 4 columns: 3 for images + 1 for the arrow */
    display: grid;
    grid-template-columns: repeat(3, 1fr) 100px; /* last column reserved for arrow */
    gap: 30px;
    align-items: center;         /* vertically center arrow with cards */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;               /* add breathing room */
    position: relative;
}

/* each photo card should occupy one cell */
.gallery-row .photo-card { 
    /* ensure cards are above page background but below arrow if needed */
    position: relative;
    z-index: 0;
}

/* place the "view all" arrow into the last grid column */
.gallery-row .more-arrow-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    grid-column: 4 / 5; /* force it into the last column */
    z-index: 2;
}

/* arrow visual */
.more-arrow-card .arrow-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    background: #d7a84a; /* adjust to match your palette */
    color: #fff;
    font-size: 1.2rem;
}

/* texts under arrow */
.more-arrow-card .view-text,
.more-arrow-card .category-text {
    display: block;
    text-align: center;
    opacity: .85;
    font-size: .78rem;
    color: #1d1603;
}

/* responsive: remove separate column on small screens */
@media (max-width: 1024px) {
    .gallery-row {
        grid-template-columns: repeat(2, 1fr) 80px;
    }
}
@media (max-width: 768px) {
    /* hide arrow on very small screens or move it below */
    .gallery-row {
        grid-template-columns: 1fr;
    }
    .gallery-row .more-arrow-card {
        grid-column: 1 / -1;
        margin: 10px auto 0;
    }
}
/* ===== REMOVE ARROW LIGHT / GLOW / OVERLAY - FINAL OVERRIDE ===== */
.more-arrow-card,
.more-arrow-card .arrow-content,
.more-arrow-card .arrow-circle,
.more-arrow-card .view-text,
.more-arrow-card .category-text {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  outline: none !important;
  border: 0 !important;
  transform: none !important;
}

/* Hide any pseudo elements used for decorative light */
.more-arrow-card::before,
.more-arrow-card::after,
.more-arrow-card .arrow-content::before,
.more-arrow-card .arrow-content::after,
.more-arrow-card .arrow-circle::before,
.more-arrow-card .arrow-circle::after {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Keep the arrow circle simple and flat */
.more-arrow-card .arrow-circle {
  width: 76px !important;
  height: 76px !important;
  border-radius: 50% !important;
  background: #d7a84a !important; /* or use transparent if you prefer */ 
  color: #fff !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Force no overlay square from ancestor stacking contexts */
.gallery-stage .gallery-section .gallery-row,
.gallery-stage .gallery-section .photo-card,
.gallery-stage .gallery-section .img-wrapper,
.gallery-stage .gallery-section .img-wrapper img {
  filter: none !important;
  transform: none !important;
  will-change: auto !important;
}

/* If any script inserts a translucent element beside the arrow, hide it */
.gallery-stage .gallery-section .gallery-row > .ghost-overlay,
.gallery-stage .gallery-section .gallery-row > .overlay,
.gallery-row > .light-rect {
  display: none !important;
}

/* Mobile behavior kept (arrow below) */
@media (max-width: 768px) {
  .gallery-row { grid-template-columns: 1fr !important; }
  .gallery-row .more-arrow-card { grid-column: 1 / -1 !important; margin-top: 8px !important; }
}
/* gallery.css
   Consolidated gallery styles extracted from style.css (shine/arrow aura removed).
   Load this AFTER style.css in the HTML.
*/

/* Basic container */
.gallery-stage {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

/* Section & heading */
.gallery-section {
  margin-bottom: 100px;
}

.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin: 0;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 800;
  /* keep a tasteful, non-glowy text gradient */
  background: linear-gradient(to bottom, #0a2e5c 0%, #1a3a5f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}

.section-heading h2 span {
  display: block;
  font-size: 0.9rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 12px;
  color: #555e6b;
  opacity: 0.9;
}

.heading-underline {
  width: 60px;
  height: 3px;
  background: #bf953f;
  margin: 18px auto 0;
  border-radius: 50px;
}

/* ROW: 3 image columns + arrow column on the right */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 120px; /* last column reserved for arrow */
  gap: 25px;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* photo cards */
.photo-card {
  background: #151515;
  border-radius: 12px;
  overflow: hidden;   /* critical: keeps anything (hover scale, shadows) inside the cell */
  box-shadow: var(--card-shadow, 0 12px 30px rgba(0,0,0,0.15));
  transition: var(--transition-smooth, all 0.45s cubic-bezier(.22,.9,.3,1));
  aspect-ratio: 4 / 3; /* consistent card ratio */
  position: relative;
  z-index: 1;
}

.img-wrapper,
.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* subtle hover for images */
.photo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}
.photo-card:hover img {
  transform: scale(1.06);
  transition: transform 0.6s ease;
}

/* "View all" arrow card - occupies the grid's last column */
.more-arrow-card {
  grid-column: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  height: 100%;
  min-width: 120px;
  min-height: 140px;
  border-radius: 12px;
  background: transparent;  /* keep minimal, transparent by default */
  border: none;
  box-shadow: none;
  position: relative;
  z-index: 2; /* sits above cards, but no glow */
  color: inherit;
}

/* arrow internal layout */
.arrow-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* arrow visual — NO sparkle/shine pseudo-element */
.arrow-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #d7a84a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: none;    /* disable large shadow to avoid light overlap */
  filter: none;        /* disable any drop-shadow/glow */
  transition: transform 0.25s ease;
}

/* Remove any leftover pseudo-element or shine defined elsewhere */
.arrow-circle::after,
.more-arrow-card .arrow-circle::after {
  display: none !important;
  content: none !important;
}

/* text labels under arrow */
.view-text {
  color: #f2e8c1;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}
.category-text {
  color: rgba(252,246,186,0.55);
  font-size: 0.7rem;
  text-transform: uppercase;
  text-align: center;
}

/* arrow hover (subtle) */
.more-arrow-card:hover .arrow-circle {
  transform: scale(1.05);
}

/* Responsive fallbacks */
@media (max-width: 1024px) {
  .gallery-row { grid-template-columns: repeat(2, 1fr) 100px; gap: 30px; }
}
@media (max-width: 768px) {
  .gallery-row { grid-template-columns: 1fr; }
  .more-arrow-card { grid-column: 1 / -1; margin-top: 12px; min-height: auto; }
  .photo-card, .more-arrow-card { aspect-ratio: 4 / 3; }
}


/* ===== Gallery page: ensure header clears the fixed .site-header =====
   Add this at the end of gallery.css (or style.css). This only adjusts spacing
   for the gallery's .header-section so the big title doesn't sit under the header.
*/

/* Estimate of site header height: adjust +80px if your header is taller */
.header-section {
  /* keep any existing vertical padding but add offset to clear the absolute header */
  padding: calc(60px + 80px) 20px 40px; /* 60px = desired top breathing for this hero, 80px = site-header height */
  box-sizing: border-box;
}

/* Medium / laptop: slightly smaller offsets */
@media (max-width: 1200px) {
  .header-section {
    padding: calc(48px + 70px) 18px 36px; /* reduce both values a bit */
  }
}

/* Mobile: header stacks / becomes shorter so reduce offset */
@media (max-width: 768px) {
  .header-section {
    padding: calc(36px + 60px) 14px 28px;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .header-section {
    padding: calc(28px + 54px) 12px 20px;
  }
}


/* ===== GALLERY: tighten white-area spacing only (safe, page-scoped) ===== */
/* Paste this at the end of gallery.css */

.gallery-stage {
  /* remove forced 100vh + lower vertical breathing */
  padding-top: 32px;    /* previously 80px */
  padding-bottom: 32px; /* previously 80px */
  min-height: auto;     /* remove forced full-viewport height */
  box-sizing: border-box;
}

/* tighten vertical gap between each gallery section */
.gallery-section {
  margin-bottom: 34px; /* previously 100px */
}

/* tighten the heading spacing for each section (title + underline) */
.section-heading {
  margin-bottom: 14px; /* previously ~50px */
}
.section-heading h2 {
  margin-bottom: 6px;
}

/* tighten the grid gutters and paddings */
.full-grid {
  gap: 12px;    /* previously 15px */
  padding: 12px;/* previously 20px */
}

/* tighter gallery-row layout (3 images + arrow) */
.gallery-row {
  gap: 16px;    /* previously 30px */
  padding: 12px;/* previously 20px */
}

/* avoid extra card margins that can create white gaps */
.photo-card,
.art-card {
  margin: 0;
  /* if you use fixed heights on cards, consider lowering them here */
}

/* Keep mobile comfortable but compact */
@media (max-width: 1024px) {
  .gallery-stage { padding-top: 24px; padding-bottom: 24px; }
  .gallery-section { margin-bottom: 26px; }
  .full-grid { gap: 10px; padding: 10px; }
  .gallery-row { gap: 12px; padding: 10px; }
}

@media (max-width: 768px) {
  .gallery-stage { padding-top: 20px; padding-bottom: 20px; }
  .gallery-section { margin-bottom: 20px; }
  .section-heading { margin-bottom: 10px; }
  .full-grid, .gallery-row { padding: 8px; gap: 10px; }
  .art-card, .photo-card { height: auto; } /* let cards size naturally on small screens */
}


/* === PAGE-SCOPED: tighten white area under the hero (safe override) === */
.gallery-stage {
  /* Reduce top breathing — tune value as needed */
  padding-top: 12px !important;
  padding-bottom: 32px !important;

  /* Remove forced full-viewport block that creates the big white gap */
  min-height: auto !important;
  box-sizing: border-box !important;
}

/* Make sure the section heading doesn't add extra top margin */
.gallery-stage .gallery-section,
.gallery-stage .section-heading {
  margin-top: -25px !important;
  padding-top: 0 !important;
}

/* Reduce title underline gap and heading spacing */
.gallery-stage .section-heading {
  margin-bottom: 14px !important; /* tight but readable */
}
.gallery-stage .section-heading h2 {
  margin: 0 0 6px 0 !important;
}

/* Responsive tuning — slightly more breathing on large screens */
@media (min-width: 1200px) {
  .gallery-stage { padding-top: 24px !important; }
}
@media (max-width: 1024px) {
  .gallery-stage { padding-top: 16px !important; }
}
@media (max-width: 768px) {
  .gallery-stage { padding-top: 12px !important; padding-bottom: 20px !important; }
  .gallery-stage .section-heading { margin-bottom: 10px !important; }
}






