/* Reset/Basic */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background: #fff;        /* full‑white as requested */
}

/* Home page only: centre the two rollover buttons */
body.home {
  display: grid;
  place-items: center;
  background: #fff; 
}

/* Container for the two buttons side-by-side */
.button-container {
  position: absolute;          
  top: 50%;                    
  left: 50%;                  
  transform: translate(-50%, -50%); 
  display: flex;
  gap: 2rem;                
}

/* Image-button styles */
.image-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;               /* Fixed width; adjust as needed */
  height: 200px;
  border: 1px solid #333;
  background-size: cover;
  background-position: center;
  position: relative;
  text-decoration: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  transition: transform 0.2s ease-in-out;
}

/* Hover effect for scale-up */
.image-button:hover {
  transform: scale(1.03);
}

/* Optional label overlay inside the button */
.thumb-label {
  position: static;
  background: transparent;         /* remove the dark rectangle      */
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;                /* thin weight                    */
  color: #000;                     /* black by default               */
  pointer-events: none;
  transition: color 0.3s ease;
  text-align: center;        /* Ensures label doesn’t block hover */
}

.image-button:hover .thumb-label {
  color: #fff;
}

/* -------------------------------------------------
   1200‑px page wrapper
   ------------------------------------------------- */
.page-container {
  max-width: 1200px;
  width: 100%; 
  margin: 0 auto;        /* centers the whole page */
  padding: 0 1rem;       /* small left/right gutter */
  background: #fff;
  min-height: 100vh;         /* take full viewport height        */
  display: flex;             /* vertical stack: header + main    */
  flex-direction: column;
  align-items: stretch;       
}

/* -------------------------------------------------
   Header: flex layout
   ------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

/* logo image */

.site-header .logo {               /* ← the <a> that holds your <img> */
  margin-right: auto;              /* absorbs the free space */
}

.logo img {
  max-height: 100px;      /* tweak size as needed */
  width: auto;
}

/* -------------------------------------------------
   Main menu
   ------------------------------------------------- */

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  font-family: 'Montserrat', sans-serif;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 400;
  position: relative;
  padding: 0.25rem 0;
}

/* underline on hover */
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #333;
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* -------------------------------------------------
   Dropdown
   ------------------------------------------------- */
.has-dropdown {
  position: relative;
}

.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 0.5rem 0;
  display: none;            /* hidden by default */
  min-width: 160px;
  z-index: 1000;
}

.has-dropdown:hover .dropdown {
  display: block;           /* show on hover */
}

.dropdown li {
  padding: 0;
}

.dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-weight: 400;         /* lighter weight inside dropdown */
}

.dropdown a:hover {
  background: #f7f7f7;
}

/* =========================================================
   1.  Hamburger button
   ========================================================= */
.hamburger {
  display: none;                 /* hidden on desktop           */
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* X‑animation when menu is open */
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =====================================================
   TYPOGRAPHY ‑‑ site‑wide defaults
   ===================================================== */

/* Headline 1  (page titles, hero headings) */
h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem); /* 32 px → 48 px responsive */
  font-weight: 500;
  line-height: 1.2;
  color: #000;           /* deep blue used elsewhere */
  text-align: left;       /* center by default; override per page if needed */
  margin-bottom: 0.25rem;   /* space under the heading */
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.25rem, 2vw + 0.25rem, 1.5rem); /* 24 px → 36 px */
  font-weight: 400;
  line-height: 1.3;
  color: #757575;          /* same deep blue as H1 */
  text-align: left;      /* override per‑page if needed */
  margin: 1.5rem 0 0.5rem; /* space above & tighter below */
}

/* Headline 3   (sub‑section headings, card titles) */
h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, .75vw + 0.15rem, .75rem); /* 20 px → 24 px */
  font-weight: 500;
  line-height: 1.35;
  color: #000;          /* slightly lighter blue for hierarchy */
  text-align: left;        /* feel free to override */
  margin: 1.25rem 0 0.5rem;
}

/* Paragraphs / body copy */
p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;          /* 16 px base */
  line-height: 1.6;         /* comfortable reading */
  color: #555;
  text-align: left;            
  margin-bottom: 1rem;      /* rhythm for stacked paragraphs */
}

/* ————————————————————————————————
   INTRO / TEXT PAGE WRAPPER
   (centred horizontally, normal top flow)
   ———————————————————————————————— */
.intro-container{
  max-width: 800px;        /* readable line length */
  width: 100%;
  margin: 4rem auto;       /* top/bottom breathing‑room */
  padding: 0 1rem;         /* side gutters */
  text-align: center;      /* matches your H1 default */
}

.intro-container h1{
  margin-bottom: .5rem;    /* tighten H1 → P gap just here */
}

.intro-container p{
  margin-top: 0;           /* zero out the default top margin */
}

/* Centered portrait used on the intro page */
.intro-portrait{
  display: block;          /* lets margin work predictably */
  max-width: 100%;         /* responsive — never overflow column */
  height: auto;
  margin: 2rem auto;       /* 2 rem top & bottom, auto left/right */
}




/* =======================================================
   BODY LAYOUT: header on top, content fills & centers
   ======================================================= */
body.site-page {                       /* every page EXCEPT the two‑button home */
  display: flex;
  flex-direction: column;              /* header + flexible main                */
  min-height: 100vh;
  background: #fff;                    /* white site‑wide                        */
}

/* header already styled earlier */

/* make <main> soak up remaining height, then center its children */
.content-center {
  flex: 1;                       /* soak up the space between header & bottom */
  display: grid;                 /* two‑liner centering magic                  */
  place-items: center;           /* = justify‑content + align‑items both center*/
  text-align: center;
}

/* a helper box so you can easily constrain width if needed */
.content-box {
  max-width: 800px;                    /* tweak per page                         */
  width: 100%;
  padding: 0 1rem;
}

/* -----------------------------------------------------------
   Portfolio grid (auto 4‑column, collapses nicely on tablets)
   ----------------------------------------------------------- */
.portfolio-grid {
  display: grid;
  gap: 2rem;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);   /* four equal tracks */
}

.portfolio-grid-artist {
  display: grid;
  gap: 2rem;
  width: auto;
  grid-template-columns: repeat(2, auto);
  margin: 0 auto;
}

/* -----------------------------------------------------------
   Thumbnail cards
   ----------------------------------------------------------- */
.thumb-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease;
}

.thumb-card:hover,
.thumb-card:focus {
  transform: translateY(-6px);        /* subtle lift on hover */
}

.thumb-card img {
  width: 100%;
  border: 1px solid #ccc;
  display: block;
  transition: filter .25s ease;
}

.thumb-card:hover img,
.thumb-card:focus img {
  filter: brightness(1.05);           /* gentle brighten */
}

.thumb-caption {
  margin-top: .75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-align: center;
}

/* -------------------------------------------------
   Gallery grid  –  4 columns ≥900 px, then 2 / 1
   ------------------------------------------------- */
.gallery-grid {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
}

.gallery-container {
  max-width: 825px; /* or any width you prefer */
  width: 100%;
  margin: 0 auto;    /* center the container */
  padding: 1rem;     /* optional internal padding */
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 0 auto;
}

.gallery-container h2 {
  font-size: 2rem;  /* Larger, bold headline */
  color: #164D72;         /* Dark text color */
  font-weight: 400;    /* Semi-bold or bold, depending on your preference */
  text-align: center;  /* Center the text */
  margin-bottom: 0.25rem; /* Spacing before next element */
}

.gallery-container p {
  font-size: 1rem;     /* Standard paragraph size */
  color: #555;         /* Medium gray for readability */
  font-weight: 400;    /* Normal weight */
  text-align: center;  /* Center the text */
  margin-bottom: 1.5rem; /* Space after paragraph */
}


.gallery-grid img {
  width: 100%;
  height: auto;
  cursor: pointer;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.gallery-grid img:hover {
  transform: scale(1.02);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox.show {
  display: flex; /* toggled by JS */
}

.lightbox-image {
  max-width: 90%;
  max-height: 80%;
  border: 3px solid #fff;
  display: block;
  margin: 0 auto;
}

/* Controls and close button */
.lightbox-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.prev, .next {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin: 0 1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.prev:hover, .next:hover {
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover {
  opacity: 1;
}


.contact-form{
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
}
.contact-form label{
  display: flex;
  flex-direction: column;
  font-weight: 400;
  text-align: left;
}
.contact-form input,
.contact-form textarea{
  border: 1px solid #ccc;
  padding: .5rem;
  font: inherit;
}
.contact-form .hidden{ display:none; }    /* honeypot */
.flash.success{ color:#2f855a; }
.flash.error  { color:#c53030; }

/* ===================================================
   Universal call‑to‑action button
   =================================================== */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #bab699;                 /* beige */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;

  /* subtle shadow + smooth transitions */
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  transition:
    background 0.25s ease,
    transform  0.15s ease,
    box-shadow 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #fff; /* white */
  color: #bab699;
  transform: translateY(-2px);         /* gentle lift */
  box-shadow: 0 6px 12px rgba(0,0,0,0.35);
}

.btn-primary:active {
  transform: translateY(0);            /* press down */
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

.btn-primary:disabled {
  background: #999;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}



/* ======== Responsive Styles ======== */

@media (max-width: 640px) {          
  .button-container {
    flex-direction: column;          /* stack vertically                 */
    gap: 1.25rem;                    /* a bit less space between buttons */
    align-items: center;             /* keep them centered horizontally  */
  }

  /* Let each button fill most of the screen width while
     preserving its 3:2 shape. */
  .image-button {
    width: 90vw;                     /* 90 % of the viewport width */
    max-width: 360px;                /* optional upper limit       */
    aspect-ratio: 3 / 2;             /* keeps the 3 : 2 rectangle  */
    height: auto;                    /* the aspect‑ratio property takes over */
  }
}

@media (max-width: 800px) {
  /* show burger, stack header items */
  .hamburger { display: flex; }
  .site-header { flex-wrap: wrap; }

  /* hide menu by default */
  .main-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0;                      /* tighter */
    border-top: 1px solid #eee;
    padding: 0.5rem 0;
  }

  /* show menu when JS adds .open to nav */
  .main-nav.open { display: flex; }

  .main-nav ul { flex-direction: column; gap: 0; }

  .main-nav li,
  .dropdown li { width: 100%; }

  .main-nav a,
  .dropdown a {
    padding: 0.75rem 1rem;
    width: 100%;
  }

  /* dropdown now indents slightly instead of floating */
  .has-dropdown .dropdown {
    position: static;
    border: 0;
    box-shadow: none;
    padding-left: 1rem;
  }
}

@media (max-width: 900px) {                /* tweak as needed   */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr); /* 2-up on tablets   */
  }
}

@media (max-width: 520px) {
  .portfolio-grid {
    grid-template-columns: 1fr;            /* single column     */
  }
}

/* =========================================
   Tidy underline animation (desktop & mobile)
   ========================================= */

/* 1.  Keep link width tight to its text + padding */
.main-nav a {
  position: relative;
  display: inline-block;      /* was “block” inside flex column */
  padding: .75rem 1rem;       /* click area still roomy        */
}

/* 2.  Underline that starts after the left padding
       and ends before the right padding            */
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;                    /* inside the padded box          */
  right: 0;
  bottom: 0;                  /* sits flush with the bottom     */
  height: 2px;
  background: currentColor;   /* inherits text colour           */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  transform: scaleX(1);       /* grows from left → right        */
}

@media (max-width: 800px) {
  .main-nav a::after { display: none; }
}

/* 3.  (Optional) Disable the underline in the slide‑down
       menu to avoid visual clutter on narrow screens.   */

