@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700&display=swap');

:root{
    --fs-xl: clamp(3.38rem, calc(-2.42rem + 12.06vw), 6.63rem);
    --fs-l: clamp(0.69rem, calc(-0.54rem + 2.55vw), 1.38rem);
    --fs-m: clamp(0.75rem, calc(0.08rem + 1.39vw), 1.13rem);
    --fs-s: clamp(0.75rem, calc(0.53rem + 0.46vw), 0.88rem);
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    /* background: rgb(0, 0, 0);   */
}

.navbar{
    top: 0;
    padding-top: 3rem;
    position: fixed;
    display: flex;
    width: 100%;
    justify-content: space-around;
    z-index: +100;
    color: grey;
    font-size: var(--fs-m); 

    background: white;  

    animation: fade-in 1s;
}

/* Links container for mobile toggle */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.navbar a{
    text-decoration: none;
    color: grey;
    opacity: 1;
}

/* HOVER EFFECT */
.navbar a:hover{
    opacity: .8;
}

/* ARTICLE */

.article-text{
    position: relative;
    top: 6rem;
    padding: 2rem;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: black;

    animation: fade-in 2.5s;
}

.article-text h1{
    font-size: var(--fs-l);
    font-weight: 600;
    line-height: 5em;
    
    animation: fade-in 2s ;
}

.article-text h2{
    font-size: var(--fs-m);
    font-weight: 600;
    line-height: 5em;
    align-self: flex-start;
    padding-left: var(--fs-xl);
    padding-right: var(--fs-xl);
    
    animation: fade-in 2s ;
}


.article-text p{
    margin-bottom: 2rem;
    font-size: var(--fs-m);
    font-weight: 200;
    line-height: 2em;
    padding-left: var(--fs-xl);
    padding-right: var(--fs-xl);
    word-spacing: 1px;
    animation: fade-in 3.5s;
}

.article-text ol{
    font-size: var(--fs-m);
    font-weight: 200;
    line-height: 2em;
    padding-left: var(--fs-xl);
    padding-right: var(--fs-xl);

    animation: fade-in 3.5s;
}

.article-text a{
    text-decoration: none;
    color: palevioletred;
    opacity: 1;

    animation: fade-in 3.5s;
}

/* MOBILE FIX: reduce left-right spacing inside article text */
@media (max-width: 600px) {

    .article-text {
        padding: 3rem;   /* reduce outer padding */
    }

    .article-text h2,
    .article-text p {
        padding-left: 1rem;
        padding-right: 1rem;   /* shrink inner padding */
    }

    .article-text h1 {
        line-height: 4em; /* optional: prevents huge vertical space on mobile */
    }

    .article-text h2 {
        line-height: 2.5em; /* optional: tighter look on small screens */
    }
}

.article-image {
    width: 100%;
    max-width: 18.75rem;
    margin-bottom: 2em;
    position: relative;
}
.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-image-caption {
    font-size: var(--fs-s);
    margin-top: 2rem;
    text-align: center;
    color: grey;
}

/* HOVER EFFECT */
.article-text a:hover{
    opacity: .8;
}

/* FADE IN ANIMATION */

@keyframes fade-in{
    0%{opacity: 0;}
    50%{opacity: 0;}
    100%{opacity: 1;}
}

.whitespace {
	width: 100%;
	height: 150px;
}

/* ARTICLE-THUMBNAIL */

.article-thumb {
    margin: 8rem;
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 6rem;
    margin-top: 1rem;
    justify-items: center;

    animation: fade-in 2s;
}

.article-thumb a {
    text-decoration: none;
}

.article-card {
    width: 100%;
    max-width: 18.75rem;
    position: relative;
}
.article-card img {
    width: 100%;
    height: auto;
    display: block;
}

.caption {
    font-size: var(--fs-s);
    margin-top: 2rem;
    text-align: center;
    color: grey;
}

.whatsapp-enquire {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background-color: #E1A95E;
      color: white;
      padding: 12px 20px;
      font-size: 16px;
      font-weight: bold;
      border-radius: 50px;
      text-decoration: none;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
      transition: background-color 0.3s;
      z-index: 999;
    }

    .whatsapp-enquire:hover {
      background-color: #E1A95E;
    }

.caption2 {
    font-size: var(--fs-s);
    margin-top: 2rem;
    text-align: center;
    color: rgb(0, 0, 0);
}

 .footer {
    margin-top: 50px;
      padding: 10px;
      background-color: #ffffff;
      text-align: center;
      font-size: 14px;
      color: #333;
    }

/* OVERLAY BACKGROUND */
.slider-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      z-index: 998;
    }

    .slider-modal {
      display: none;
      position: fixed;
      z-index: 999;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      padding: 20px;
      border-radius: 12px;
      max-width: 700px;
      width: 90%;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
      text-align: center;
      touch-action: pan-y;
    }

    .slider-image {
      width: 100%;
      max-height: 70vh;
      object-fit: contain;
      margin-bottom: 1rem;
      user-select: none;
    }

    .slider-caption {
      font-size: 0.95rem;
      color: #333;
      padding: 10px 0;
    }

    .slider-close {
      position: absolute;
      top: 10px;
      right: 15px;
      font-size: 28px;
      font-weight: bold;
      color: #333;
      cursor: pointer;
    }

    .slider-prev, .slider-next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 32px;
      color: #333;
      font-weight: bold;
      cursor: pointer;
      user-select: none;
      padding: 10px;
    }

    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }

    .slider-dots {
      margin-top: 10px;
      text-align: center;
    }

    .dot {
      display: inline-block;
      width: 10px;
      height: 10px;
      margin: 0 5px;
      background-color: #ccc;
      border-radius: 50%;
      cursor: pointer;
    }

    .dot.active {
      background-color: #555;
    }

    
/* =========================
   DROPDOWN MENU
========================= */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-transform: lowercase;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.9);
  min-width: 150px;
  z-index: 1;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.3s ease;
}

.dropdown-content.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  text-transform: lowercase;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.arrow.rotate {
  transform: rotate(180deg);
}

/* Optional underline effect */
.dropdown:hover .dropbtn {
  text-decoration: underline;
}

/* =========================
   MOBILE MENU
========================= */
.menu-icon {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
  position: absolute;
  right: 20px;
  top: 1.5rem;
}

@media (max-width: 768px) {
  .navbar {
    justify-content: flex-end;
    padding-top: 1.5rem;
    background-color: transparent; /* only shows when menu opens */
  }

  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* appears only when active */
    padding: 10px 0;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown-content {
    position: static;
    background-color: transparent;
    min-width: unset;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .dropdown-content a {
    padding: 6px 0;
  }

  .article-text{
    top: 2rem;
  }
}


/* =========================
   ANIMATIONS
========================= */
@keyframes fade-in {
  0% { opacity: 0; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}
/* Mobile view adjustments */
@media screen and (max-width: 768px) {
  .menu-icon {
    font-size: 2rem; /* Keep hamburger/cross size */
    cursor: pointer;
    color: white; /* Ensure white color */
    z-index: 1001; /* on top of nav */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* adjust based on navbar height */
    right: 0;
    background-color: rgba(0,0,0,0.95); /* optional */
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a,
  .dropdown .dropbtn {
    color: white;
    margin: 0.5rem 0;
    font-size: 1.2rem;
  }

  .dropdown-content {
    position: static;
    background: transparent;
    box-shadow: none;
    display: none;
  }

  .dropdown-content.show {
    display: flex;
    flex-direction: column;
  }
}
/* Mobile view adjustments */
@media screen and (max-width: 768px) {
  /* Mobile navbar background slightly transparent */
  .nav-links {
    background-color: rgba(0, 0, 0, 0.85); /* black with 85% opacity */
  }

  /* Dropdown menu for "exhibitions" transparent in mobile */
  .dropdown-content {
    background-color: rgba(0, 0, 0, 0.85); /* black with 85% opacity */
  }
}
@media screen and (max-width: 768px) {
  /* Mobile nav-links */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;       /* fixed to viewport */
    top: 0;
    left: 0;
    bottom: 0;             /* stretch to bottom */
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* slightly transparent */
    text-align: center;
    padding-top: 1rem;     /* keep original spacing */
    z-index: 1000;
  }

  /* Mobile menu open */
  .nav-links.active {
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; /* links start from top */
    height: auto;                /* keep links container natural height */
  }

  /* Dropdown inside mobile menu */
  .dropdown-content {
    position: static;
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.85);
  }

  .dropdown-content.show {
    display: flex;
  }

  /* Menu icon */
  .menu-icon {
    font-size: 2rem;
    cursor: pointer;
    color: black;
    z-index: 1001; /* above nav-links */
  }

  /* Keep all links same as before */
  .nav-links a,
  .dropdown .dropbtn {
    color: white;
    margin: 0.5rem 0;
    font-size: 1.2rem;
  }
}
/* ======= Mobile animated menu (drop-in override) ======= */
@media (max-width: 768px) {
  /* Force the nav-links to remain in flow but collapsed so it can animate */
  .navbar .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;                 /* collapsed */
    opacity: 0;                    /* invisible */
    transform: translateY(-10px);  /* slightly up */
    overflow: hidden;
    overflow-y: auto;              /* allow scrolling inside menu if needed */
    background-color: rgba(0,0,0,0.85);
    transition: max-height 420ms cubic-bezier(.2,.9,.2,1),
                opacity 300ms ease,
                transform 300ms ease;
    pointer-events: none;          /* prevent clicks while hidden */
    z-index: 1000;
    padding-top: 0; /* keep collapsed padding out */
  }

  /* Open state — animated */
  .navbar .nav-links.active {
    max-height: 100vh;             /* large enough to reveal full content */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding-top: 1rem;             /* restore spacing when open */
    justify-content: flex-start;
  }

  /* keep links styling unchanged but ensure they lay out vertically */
  .navbar .nav-links a,
  .navbar .nav-links .dropbtn {
    margin: 0.5rem 0;
  }

  /* Ensure dropdown content behavior inside mobile works unchanged */
  .navbar .nav-links .dropdown-content {
    display: none;
    background-color: rgba(0,0,0,0.85);
  }
  .navbar .nav-links .dropdown-content.show {
    display: flex;
    flex-direction: column;
  }
}