/* ==========================================================
   GLOBAL / RESET
   ========================================================== */
html {
    scrollbar-width: none;       /* Firefox */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    background: #ECE9E4;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    background: var(--site-bg);
    color: #333;

     font-size: 1rem; /* SINGLE SOURCE OF TRUTH */
}

footer {
  background: var(--footer-bg);
}

.logo {
  color: var(--logo-color);
  font-family: var(--logo-font);
}

main {
    flex: 1;
    width: 100%;
    padding-top: 70px; /* fixed header offset */
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    margin-top: 40px;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

/* Gallery / visual pages */
.gallery-container {
    width: 100%;
    max-width: 100%;
   margin-top: 60px;
}




html::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;

    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 22px;
    height: 2px;
    background: #333;
    display: block;
}



/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #FAF8F4E6;
    backdrop-filter: blur(4px);
    border-bottom: 1px solid #ddd;
}

.site-header .inner {
    margin: 0 auto;
    padding: 0 40px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-header .logo {
    margin: 0;
    padding: 0;
}

header .logo {
    font-family: var(--logo-font);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--logo-color);
    text-decoration: none;
}

/* Navigation */
nav {
    display: flex;
    gap: 28px;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
}

nav a:hover,
nav a.active {
    color: #B45F36;
    text-decoration: underline;
}


/* ==========================================================
   HERO BANNER – MOBILE SAFE (NO VH JUMP)
   ========================================================== */

.hero-banner {
    width: 100%;
    height: 150px;/* desktop default */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-image: url('/images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    overflow: hidden;
}

/* Overlay */
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.15)
    );
}

/* Title */
.hero-banner h1,
.hero-title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-family: 'Pacifico', cursive;
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}




/* ==========================================================
   INTRO / TEXT BLOCKS
   ========================================================== */

.intro-text {
    max-width: 1200px;
    margin: 40px auto 30px;
    text-align: left;
    /*font-size: 1.2rem;*/
    font-size: 1em; /* inherit from body */
    color: #444;
    line-height: 1.6;
}

.intro-section {
    max-width: 900px;
    margin: 40px auto 30px;
    text-align: center;
    /*font-size: 18px;*/
    font-size: 1em; /* inherit from body */
    color: #444;
    line-height: 1.6;
}

.page-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #555;
    text-align: center;
}

/* 🔒 TYPOGRAPHY SAFETY NET (iOS Safari) */
.intro-text,
.intro-section,
.page-intro,
.apropos-text,
.contact-text {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================
   HOME PAGE STRUCTURE
   ========================================================== */

.home-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.home-gallery-title {
    margin-top: 40px;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.home-section-title {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 700;
}


/* ==========================================================
   CATEGORY GRID (SHARED HOME + GALERIE)
   ========================================================== */


/* Container for category cards */
.categories-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;

    max-width: 1100px;
    margin: 60px auto 0;
    padding: 0 40px;
}

/* Category card */
.category-btn {
    width: 100%;          /* FINAL value (matches current behavior) */
    /*height: 200px;*/
    max-width: 200px;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    text-decoration: none;

    /* interaction */
    transition: transform 0.3s;
}

.category-btn:hover {
    transform: scale(1.05);
}

/* Category image */
.category-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* critical: same crop everywhere */
    opacity: 0.88;
    display: block;        /* prevents inline-image gaps */
}

.category-btn:hover img {
    opacity: 1;
}

/* Category label */
.cat-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);

    max-width: 90%;
    padding: 6px 10px;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;

    white-space: nowrap;        /* 🚫 no wrapping */
    overflow: hidden;           /* hide overflow */
    text-overflow: ellipsis;    /* … */

    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 10px;

    pointer-events: none;
}




/* ==========================================================
   GALLERY IMAGE GRID (INSIDE CATEGORIES)
   ========================================================== */

/* Optional intro text (Galerie page only, not home) */
.gallery-intro {
    min-height: 10px;        /* creates the gap */
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 10px 20px;
    text-align: center;
    color: #555;
    font-size: 1.05rem;
}

/* ==============================
   GALLERY LAYOUT ARCHITECTURE
   ============================== */

/* Controls grid width & centering */
.gallery-wrapper {
  max-width: 1400px;      /* or 100% if you want ultra-wide */
  margin: 0 auto;
  padding: 0 40px;
}

/* ==========================================================
   GALLERY GRID
   ========================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;

  /*justify-content: center; /* 🔑 FIX */
}

/* Wide visual sections (gallery, categories, press) */
.section-media {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 60px 0; /* ❗ ingen horisontal padding her */
}

/* Inner width controller for wide sections */
.media-inner {
  width: 100%;
  max-width: 1600px;
  padding: 0 40px;   /* flyt padding hertil */
  box-sizing: border-box;
}



/* ==========================================================
   GALLERY ITEM
   ========================================================== */
.gallery-media {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;

    /* 🔑 SINGLE SOURCE OF TRUTH */
    /*height: 220px;*/
    aspect-ratio: 1/1;
}

/* Thumbnail image */
.gallery-item img {
    width: 100%;
    height: 100%;          /* 🔑 fixes tiny thumbnails */
    object-fit: cover;     /* handles mixed ratios */
    
    display: block;
    cursor: zoom-in;
    transition: transform 0.25s ease;
    border-radius: 0;
}

.gallery-item img:hover {
    transform: scale(1.02);
}



/* ==============================
   ARCHITECTURE – CORE CONTAINERS
   ============================== */

/* Narrow text sections (reading width) */
.section-text {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* ==============================
   THANK YOU / MERCI PAGE
   ============================== */

.thank-you {
    max-width: 720px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.thank-you h1 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.thank-you p {
    font-size: 1em;            /* inherits body size */
    line-height: 1.6;
    color: #444;
    margin-bottom: 16px;
}

.thank-you .notice {
    margin-top: 32px;
    padding: 16px 20px;
    font-size: 0.9em;
    background: rgba(0,0,0,0.04);
    border-radius: 6px;
    color: #555;
}


/* ==========================================================
   BACK TO GALERIE BUTTON
   ========================================================== */

.back-to-gallery {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%);

    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;

    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.08);

    z-index: 999;
    transition: all 0.25s ease;
}

.back-to-gallery:hover {
    background: #ffffff;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ==============================
   LIGHTBOX (FINAL – DO NOT PATCH)
============================== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;

    overscroll-behavior: none;
    touch-action: pan-y;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* Overlay */
.lightbox-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    cursor: pointer;
    pointer-events: auto;
}

/* Content */
.lightbox-content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: auto;
}

/* Media */
.lightbox-media {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 90vw;
    max-height: 90vh;

    pointer-events: auto;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

/* ==============================
   NAVIGATION ZONES (STATE-LOCKED)
============================== */

.lightbox-zone {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 260px;
    height: 400px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 3;

    pointer-events: none;   /* 🔒 */
    visibility: hidden;     /* 🔒 */
}

.lightbox.active .lightbox-zone {
    pointer-events: auto;   /* 🔓 */
    visibility: visible;    /* 🔓 */
}

.lightbox-zone.prev {
    left: -160px;
}

.lightbox-zone.next {
    right: -160px;
}

.lightbox-zone.disabled {
    pointer-events: none;
    visibility: hidden;
}

/* ==============================
   ARROWS
============================== */

.lightbox-arrow {
    width: 46px;
    height: 46px;
    stroke: white;
    stroke-width: 2.6;
    fill: none;

    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.28s ease, transform 0.32s ease;
}

.lightbox-zone:not(.disabled):hover .lightbox-arrow {
    opacity: 1;
    transform: scale(1);
}

/* Scroll lock */
body.lightbox-open {
    overflow: hidden;
    overscroll-behavior: none;
}

/* ==============================
   LIGHTBOX CAPTION – DESKTOP FIX
============================== */

.lightbox-caption {
    margin-top: 16px;
    padding: 10px 16px;

    font-size: 0.9rem;
    line-height: 1.4;
    color: #fff;

    background: rgba(0, 0, 0, 0.65);
    border-radius: 8px;

    max-width: 90%;
    text-align: center;

    opacity: 1; /* force visibility */
}

/* ==============================
   LIGHTBOX – NO ARROWS DURING SWIPE
============================== */

.lightbox.is-swiping .lightbox-zone {
    opacity: 0 !important;
    pointer-events: none;
}

/* ================================
   LIGHTBOX CLOSE BUTTON
================================ */

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;

    font-size: 26px;
    line-height: 1;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;            /* ABOVE arrows */
    /*pointer-events: auto;  /* clickable */
}

/* hover only on desktop */
@media (hover: hover) {
    .lightbox-close:hover {
        background: rgba(0,0,0,0.8);
    }
}


/* =====================================
   À PROPOS — BASE (ALL DEVICES)
===================================== */


.apropos {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}

.apropos-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto;
}

.apropos-text {
  line-height: 1.6;
  /*font-size: 1.2rem;*/
  font-size: 1em; /* inherit from body */
  color: #444;
}

/* =====================================
   À PROPOS — IMAGE POSITION (CMS)
===================================== */

/* reset default centering */
.apropos-image {
  margin-bottom: 24px;
}

/* TEXT WRAP POSITIONS */
.apropos-image.top-left {
  float: left;
  width: 42%;
  margin: 0 32px 20px 0;
}

.apropos-image.top-right {
  float: right;
  width: 42%;
  margin: 0 0 20px 32px;
}

/* BLOCK POSITIONS */
.apropos-image.left {
  float: left;
  width: 42%;
  margin: 0 32px 32px 0;
}

.apropos-image.right {
  float: right;
  width: 42%;
  margin: 0 0 32px 32px;
}

/* CENTERED */
.apropos-image.top-center {
  float: none;
  width: 60%;
  margin: 0 auto 32px;
}

.apropos-image.bottom-center {
  float: none;
  width: 60%;
  margin: 32px auto 0;
}

/* clear floats */
.apropos-text::after {
  content: "";
  display: block;
  clear: both;
}

/* ==========================
   CV BUTTON — À PROPOS
========================== */

.cv-download {
  margin: 2.5rem 0 1rem;
  text-align: center;
}

.btn-cv {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid #b08a6c;
  color: #5a3a2e;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 4px;
}

.btn-cv:hover {
  background: #f3ece6;
}


/* =====================================
   CONTACT — BASE
===================================== */

.contact {
    padding: 32px 20px 80px;
}

.contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* =====================================
   LEFT ASIDE (TEXT + IMAGE)
===================================== */

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Text FIRST (important for tablets / phones landscape) */
.contact-text {
    order: 1;
    /*font-size: 1.2rem;*/
    font-size: 1em; /* inherit from body */  
    line-height: 1.6;
    color: #444;
}

/* Image SECOND */
.contact-image {
    order: 2;
}

.contact-image img {
    width: 90%;
    max-height: 500px;        /* 🔧 IMAGE HEIGHT CONTROL */
    object-fit: cover;        /* 🔧 IMAGE CROP CONTROL */
    border-radius: 4px;
}

/* =====================================
   CONTACT FORM — HARD RESET
===================================== */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    max-width: 100%;
}

/* CRITICAL: prevent grid overflow */
.contact-form * {
    min-width: 0;
    box-sizing: border-box;
}

/* Fieldsets */
.contact-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.contact-form legend {
    font-size: 0.95rem;
    font-weight: 600;
}

/* =====================================
   FORM FIELDS
===================================== */

.contact-form label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact – company field hidden by default */
.company-field {
  display: none;
}


.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.form-legal-links {
  margin-top: 12px;
  font-size: 0.75rem;
  color: #666;
}

.form-legal-links a {
  color: inherit;
  text-decoration: underline;
}

/* ==========================
   LEGAL PAGES (Mentions & Privacy)
========================== */

.page-legal {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
}

/* Improve spacing between sections */
.page-legal h2,
.page-legal h3 {
  margin-top: 2.5rem;
}

.page-legal p,
.page-legal ul {
  margin-bottom: 1.2rem;
}

/* =====================================
   LEGAL PAGES — FORCE LAYOUT WITHOUT WRAPPER
===================================== */

main > h2,
main > h3,
main > p,
main > ul,
main > ol,
main > div.legal-back {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Titles centered */
main > h2,
main > h3 {
  text-align: center;
}

/* Text readable */
main > p,
main > ul,
main > ol {
  text-align: left;
}

/* Back to contact button */
.legal-back {
  margin: 3rem 0 1rem;
  text-align: center;
}

.btn-back-contact {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #b08a6c;
  color: #5a3a2e;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
}

.btn-back-contact:hover {
  background: #f3ece6;
}

/* ==========================
   MERCI PAGE
========================== */

.page-merci {
  display: flex;
  justify-content: center;
}

.merci-box {
  max-width: 640px;
  margin: 80px auto;
  padding: 40px 30px;
  text-align: center;
}

.merci-content {
  margin: 20px 0 30px;
  line-height: 1.7;
}

.merci-actions a {
  display: inline-block;
  margin: 8px 12px;
}


/* =====================================
   FILE INPUT
===================================== */
.upload-dropzone {
    margin-top: 10px;
    padding: 14px;
    border: 2px dashed #bbb;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
}

.upload-dropzone.dragover {
    border-color: #B45F36;
    background: #f9f5f1;
}

.upload-preview {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.upload-thumb {
    position: relative;
    width: 80px;
    height: 80px;
}

.upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.upload-thumb button {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}


.file-upload-btn {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #999;
  border-radius: 4px;
  background: #f5f5f5;
  color: #222;
  font-size: 0.9rem;
  cursor: pointer;
  width: auto;           /* 🔑 NOT full width */
}

.file-upload-btn:hover {
  background: #eaeaea;
}

.file-input-hidden {
  position: absolute;
  left: -9999px;
}

.file-list {
    margin-top: 8px;
    padding-left: 18px;
    font-size: 0.85rem;
    color: #444;
}

.file-list li {
    list-style: disc;
}

/* =====================================
   CONDITIONS — HARD FIX
===================================== */

.conditions details {
    display: block;
    width: 100%;
}

.conditions summary {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: list-item;       /* ← CRITICAL */
}

/* Optional: nicer arrow alignment */
.conditions summary::marker {
    font-size: 0.9rem;
}



.conditions-check {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    column-gap: 12px;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
}


.conditions-check input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.conditions-check label {
    display: block;
    flex: 1 1 auto;
    max-width: 100%;
    line-height: 1.4;
    white-space: normal;
    word-break: normal;
}




/* =====================================
   SUBMIT
===================================== */

.contact-form button.btn-primary {
    align-self: flex-start;
    margin-top: 12px;
}

/* =====================================
   PRIVACY
===================================== */

.form-privacy {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #555;
}

/* =========================
   MERCI PAGE
========================= */

.merci-box {
    max-width: 520px;
    margin: 120px auto;
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.merci-box h1 {
    margin-bottom: 16px;
}

.merci-content {
    margin-bottom: 28px;
    line-height: 1.6;
}

/* =========================
   MERCI PAGE ACTIONS
========================= */

.btn-secondary {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #555;
    text-decoration: underline;
}


/* =====================================
   HONEYPOT — KEEP
===================================== */

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ==========================================================
   NETLIFY HONEYPOT — MUST BE INVISIBLE
   ========================================================== */
.hidden {
  display: none !important;
}


/* =====================================
   PHONES (PORTRAIT + LANDSCAPE)
   → FORM ONLY
===================================== */

@media (max-width: 767px) {
    
    .contact-inner {
        grid-template-columns: 1fr;
    }

    .contact-aside {
        display: none;        /* 🔥 image + text removed on phones */
    }

    .contact-form {
        max-width: 640px;
        margin: 0 auto;
    }
}

/* =====================================
   TABLETS + DESKTOP
===================================== */

@media (min-width: 768px) {

    .contact-inner {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }

    .contact-form {
        max-width: 720px;     /* 🔧 FORM WIDTH CONTROL */
    }
}


/* ==========================
   PRESSE PAGE
========================== */

.presse .gallery-grid {
  margin-top: 40px;
}

/* No captions = nothing to hide, but extra safety */
.presse .lightbox-caption {
  display: none !important;
}

/* ==========================================================
   PRESSE GRID — DESKTOP DEFAULT
   Max 6 images per row (independent from galerie grid)
   ========================================================== */

.presse .gallery-grid {
  grid-template-columns: repeat(6, 1fr); /* 🔑 HARD LIMIT */
  gap: 28px;                             /* air between images */
}


/* ==============================
   GLOBAL INTERACTION SAFETY
   ============================== */

/* Invisible elements NEVER capture clicks */
[hidden],
.hidden,
[aria-hidden="true"] {
  pointer-events: none !important;
}

/* ==============================
   LIGHTBOX HARD STATE LOCK
============================== */

/* Lightbox is DEAD unless active */
.lightbox:not(.active) {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Lightbox ONLY exists when active */
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}


/* ==========================
   FOOTER
========================== */

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid #ddd;
  padding: 20px 24px;
  font-size: 0.85rem;
  color: #5A3A2E;
}

.footer-inner {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  height: 100%;
}

/* CENTER EMAIL — TRUE CENTER */
.footer-center {
  text-align: center;
  font-weight: 500;
}

.footer-email {
  color: inherit;
  text-decoration: underline;
}

/* RIGHT CREDIT */
.footer-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.50;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* AENIR CREDIT (LOGO + TEXT) */
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================
   STEP 1 — MOBILE GALLERY THUMBNAILS (SAFE)
   ========================================================== */
@media (max-width: 480px) {

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* 🔑 crop, never stretch */
    display: block;
  }

  .img-caption {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
}

@media (max-width: 360px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .presse .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* ==========================================================
   DESKTOP HOVER EFFECTS (ONLY POINTER DEVICES)
   ========================================================== */

@media (hover: hover) and (pointer: fine) {

  .gallery-item {
    position: relative;
    overflow: hidden;
  }

  .gallery-item img {
    transition: transform 0.4s ease;
    will-change: transform;
  }

  .gallery-item:hover img {
    transform: scale(1.06); /* 🔑 subtle, premium zoom */
  }
}



/* ==============================
   GALLERY CAPTION — FIXED, STATIC
============================== */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.img-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 10px 14px;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #fff;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.25),
        transparent
    );

    opacity: 1;
    pointer-events: none;
}

/* IMPORTANT:
   Media queries are ordered from MOST specific to MOST generic.
   Do NOT reorder unless you know exactly why.
*/

/* ======================================
   Phones portrait — standard
   ====================================== */ 
     /* iPhone SE → Pro Max */
     /* Modern phones portrait */

@media (min-width: 310px) and (max-width: 480px) and (orientation: portrait){

    body {
    font-size: 0.95rem;
    }

    /*BANNER*/  
    .hero-banner {
        height: 70px;
    }
    .hero-banner h1,
    .hero-title {
        font-size: 1.2rem;
    }
    /* INTRO */
    .intro-text { 
        margin-top: 16px; 
        /*font-size: 0.95rem;*/ 
        margin: 10px auto 16px; }

    /*HOME GALLERY TITLE*/
    .home-gallery-title{font-size: 22PX; margin-top: 10px; margin-bottom: 20px;}
    /* CATEGORIES */
    .categories-container { 
      grid-template-columns: repeat(2, 1fr); 
      gap: 14px;
      margin: 5px auto 0;
      max-width: fit-content;
    }
    .category-btn { max-width: 110px; }
    .cat-label { font-size: 0.7rem; }

    /*GALERIES GRID*/
    .gallery-grid {grid-template-columns: repeat(3,1fr);gap: 14px;}
    .gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;     /* 🔑 FORCE PERFECT SQUARE */
    overflow: hidden;
    border-radius: 12px;
    }

    /*FOOTER*/
    .site-footer{ font-size: 0.8rem;}
    .footer-center{ text-align: left;}
    .footer-right{font-size: 0.68rem;}

    .back-to-gallery {
    /* 🔥 HARD RESET */
    position: fixed !important;
    inset: auto !important;
    top: 70% !important;
    bottom: auto !important;
    left: auto !important;
    right: -6% !important;

    transform: translateY(-50%) rotate(90deg) !important;

    padding: 6px 8px;
    font-size: 0.65rem;
    letter-spacing: 0.15em;

    background: rgba(0, 0, 0, 0.75);
    color: #fff;

    border-radius: 6px;
    z-index: 2000;

    text-transform: uppercase;
    white-space: nowrap;
    }

    .burger {
        display: flex;
    }

    .site-header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        display: none;
        flex-direction: column;
        align-items: center;
        gap: 16px;

        background: #F7F4EF;
        padding: 20px 0;
        z-index: 1000;
    }

    .site-header.nav-open nav {
        display: flex;
    }

    
    .apropos img {
        float: none;
        width: 100%;
        max-height: 250px;       /* 🔧 IMAGE HEIGHT CONTROL */
        object-fit:scale-down;       /* 🔧 CROP CONTROL */
        margin: 0 0 20px 0;      /* image above text */
    }

    .img-caption {
    display: none !important;
    }

    /* PRESSE GRID — phones portrait */
    .presse .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* ======================================
   Phones landscape special for burger menu very small phone 
   ====================================== */

   @media(max-width: 667px)and (orientation: landscape) {

    .burger {
        display: flex;
    }

    .site-header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        display: none;
        flex-direction: column;
        align-items: center;
        gap: 16px;

        background: #F7F4EF;
        padding: 20px 0;
        z-index: 1000;
    }

    .site-header.nav-open nav {
        display: flex;
    }


   }
     
/* ======================================
   Phones landscape
   ====================================== */
  /* ALL phones in landscape */
  /* Height is limited → be careful */

@media (min-width: 640px) and (max-width: 932px) and (orientation: landscape) {

    body {
    font-size: 0.95rem;
    }

  .hero-banner {
        height: 60px;
    }

    .hero-banner h1,
    .hero-title {
        font-size: 1.2rem;
    }

    /* INTRO */
    .intro-text { 
        /*font-size: 0.95rem; */
        margin: 15px auto 16px; }

    /*HOME GALLERY TITLE*/
    .home-gallery-title{font-size: 22PX; margin-top: 10px; margin-bottom: 20px;}
    /* CATEGORIES */
    .categories-container { 
      grid-template-columns: repeat(5, 1fr); 
      gap: 14px;
      margin: 5px auto 0;
      max-width: fit-content;
    }
    .category-btn { max-width: 110px; }
    .cat-label { font-size: 0.7rem; }

    /*GALERIES GRID*/
    .gallery-grid {grid-template-columns: repeat(5,1fr);gap: 14px;}
    .gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;     /* 🔑 FORCE PERFECT SQUARE */
    overflow: hidden;
    border-radius: 12px;
    }

    /*FOOTER*/
    .site-footer{ font-size: 0.8rem;}
    .footer-center{ text-align: center;}
    .footer-right{font-size: 0.68rem;}

    .back-to-gallery {
    /* 🔥 HARD RESET */
    position: fixed !important;
    inset: auto !important;
    top: 70% !important;
    bottom: auto !important;
    left: auto !important;
    right: -2.9% !important;

    transform: translateY(-50%) rotate(90deg) !important;

    padding: 6px 8px;
    font-size: 0.65rem;
    letter-spacing: 0.15em;

    background: rgba(0, 0, 0, 0.75);
    color: #fff;

    border-radius: 6px;
    z-index: 2000;

    text-transform: uppercase;
    white-space: nowrap;
    }

      /*.apropos img {
        float: none;
        width: 100%;
        max-height: 260px;       
        object-fit:scale-down;
        margin: 0 0 20px 0;
    }*/

   /* .apropos-text {
        font-size: 0.95rem;
    }*/

      .apropos img {
        float: left;
        width: 40%;              /* 🔧 IMAGE WIDTH CONTROL */
        max-height: 350px;
        object-fit: cover;
        margin: 0 24px 16px 0;
    }

      .img-caption {
        display: none !important;
    }

    /* PRESSE GRID — phones landscape */
    .presse .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }

}

/* ======================================
   SPECIAL TIL Surface Duo
   ====================================== */

@media (min-width: 530px) and (max-width: 560px) and (orientation: portrait) {

 .hero-banner {
        height: 100px;
    }

    .hero-banner h1,
    .hero-title {
        font-size: 1.9rem;
    } 

    /* INTRO */
    .intro-text { font-size: 0.95rem; margin: 15px auto 16px; }

    /*HOME GALLERY TITLE*/
    .home-gallery-title{font-size: 22PX; margin-top: 10px; margin-bottom: 20px;}
    /* CATEGORIES */
    .categories-container { 
      grid-template-columns: repeat(4, 1fr); 
      gap: 14px;
      margin: 5px auto 0;
      max-width: fit-content;
    }
    .category-btn { max-width: 110px; }
    .cat-label { font-size: 0.7rem; }

    /*GALERIES GRID*/
    .gallery-grid {grid-template-columns: repeat(4,1fr);gap: 14px;}
    .gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;     /* 🔑 FORCE PERFECT SQUARE */
    overflow: hidden;
    border-radius: 12px;
    }

    /*FOOTER*/
    .site-footer{ font-size: 0.8rem;}
    .footer-center{ text-align: center;}
    .footer-right{font-size: 0.68rem;}

    .burger {
        display: flex;
    }

    .site-header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        display: none;
        flex-direction: column;
        align-items: center;
        gap: 16px;

        background: #F7F4EF;
        padding: 20px 0;
        z-index: 1000;
    }

    .site-header.nav-open nav {
        display: flex;
    }

    
    .apropos img {
        float: left;
        width: 50%;
        max-height: 250px;       /* 🔧 IMAGE HEIGHT CONTROL */
        object-fit:scale-down;       /* 🔧 CROP CONTROL */
        margin: 0 0 20px 0;      /* image above text */
    }

    .apropos-text {
        font-size: 0.95rem;      /* 🔧 TEXT SIZE CONTROL */
    }

    .contact-text{font-size: 0.95rem;}

    /* PRESSE GRID — tablets portrait */
    .presse .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}


/* ======================================
   Small tablets portrait
   ====================================== */
  /* Nexus 7, small Android tablets */

@media (min-width: 600px) and (max-width: 767px) and (orientation: portrait) {

 .hero-banner {
        height: 140px;
    }

    .hero-banner h1,
    .hero-title {
        font-size: 1.9rem;
    } 

    /* INTRO */
    .intro-text { font-size: 0.95rem; margin: 15px auto 16px; }

    /*HOME GALLERY TITLE*/
    .home-gallery-title{font-size: 22PX; margin-top: 10px; margin-bottom: 20px;}
    /* CATEGORIES */
    .categories-container { 
      grid-template-columns: repeat(3, 1fr); 
      gap: 14px;
      margin: 5px auto 0;
      max-width: fit-content;
    }
    .category-btn { max-width: 150px; }
    .cat-label { font-size: 0.7rem; }

    /*GALERIES GRID*/
    .gallery-grid {grid-template-columns: repeat(4,1fr);gap: 14px;}
    .gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;     /* 🔑 FORCE PERFECT SQUARE */
    overflow: hidden;
    border-radius: 12px;
    }

    /*FOOTER*/
    .site-footer{ font-size: 0.8rem;}
    .footer-center{ text-align: center;}
    .footer-right{font-size: 0.68rem;}

    /*A PROPOS*/
    .apropos img {
        float: left;
        width: 42%;              /* 🔧 IMAGE WIDTH CONTROL */
        max-height: 520px;       /* 🔧 IMAGE HEIGHT CONTROL */
        object-fit: cover;       /* 🔧 CROP CONTROL */

        margin: 0 32px 20px 0;   /* space between image and text */
    }

    .apropos-text {
        font-size: 0.95rem;      /* 🔧 TEXT SIZE CONTROL */
    }

    /* PRESSE GRID — tablets portrait */
    .presse .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ======================================
   Standard tablets portrait
   ====================================== */
  /* iPad Mini, iPad, iPad Air */

   @media (min-width: 768px) and (max-width: 834px) and (orientation: portrait) {

  .hero-banner {
        height: 140px;
    }

    .hero-banner h1,
    .hero-title {
        font-size: 1.9rem;
    } 

    /* INTRO */
    .intro-text { font-size: 0.95rem; margin: 15px auto 16px; }

    /*HOME GALLERY TITLE*/
    .home-gallery-title{font-size: 22PX; margin-top: 10px; margin-bottom: 20px;}
    /* CATEGORIES */
    .categories-container { 
      grid-template-columns: repeat(4, 1fr); 
      gap: 14px;
      margin: 5px auto 0;
      max-width: fit-content;
    }
    .category-btn { max-width: 150px; }
    .cat-label { font-size: 0.7rem; }

     /*GALERIES GRID*/
    .gallery-grid {grid-template-columns: repeat(4,1fr);gap: 14px;}
    .gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;     /* 🔑 FORCE PERFECT SQUARE */
    overflow: hidden;
    border-radius: 12px;
    }

    /*FOOTER*/
    .site-footer{ font-size: 0.8rem;}
    .footer-center{ text-align: center;}
    .footer-right{font-size: 0.68rem;}

    /*A PROPOS*/
    .apropos img {
        float: left;
        width: 42%;              /* 🔧 IMAGE WIDTH CONTROL */
        max-height: 520px;       /* 🔧 IMAGE HEIGHT CONTROL */
        object-fit: cover;       /* 🔧 CROP CONTROL */

        margin: 0 32px 20px 0;   /* space between image and text */
    }

    .apropos-text {
        font-size: 0.95rem;      /* 🔧 TEXT SIZE CONTROL */
    }

    .contact-text{font-size: 0.95rem;}

    /* PRESSE GRID — tablets portrait */
    .presse .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}

    

/* ======================================
   Large tablets portrait
   ====================================== */
  /* iPad Pro 11 & 12.9 */

@media (min-width: 835px) and (max-width: 1024px) and (orientation: portrait) {

  .hero-banner {
        height: 140px;
    }

    .hero-banner h1,
    .hero-title {
        font-size: 1.9rem;
    } 

    /* INTRO */
    .intro-text { font-size: 0.95rem; margin: 15px auto 16px; }

    /*HOME GALLERY TITLE*/
    .home-gallery-title{font-size: 22px; margin-top: 50px; margin-bottom: 50px;}
    /* CATEGORIES */
    .categories-container { 
      grid-template-columns: repeat(5, 1fr); 
      gap: 14px;
      margin: 5px auto 0;
      max-width: fit-content;
    }
    .category-btn { max-width: 160px; }
    .cat-label { font-size: 0.7rem; }

    /*GALERIES GRID*/
    .gallery-grid {grid-template-columns: repeat(4,1fr);gap: 14px;}
    .gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;     /* 🔑 FORCE PERFECT SQUARE */
    overflow: hidden;
    border-radius: 12px;
    }

    /*FOOTER*/
    .site-footer{ font-size: 0.8rem;}
    .footer-center{ text-align: center;}
    .footer-right{font-size: 0.68rem;}

    /*A PROPOS*/
    .apropos img {
        float: left;
        width: 42%;              /* 🔧 IMAGE WIDTH CONTROL */
        max-height: 520px;       /* 🔧 IMAGE HEIGHT CONTROL */
        object-fit: cover;       /* 🔧 CROP CONTROL */

        margin: 0 32px 20px 0;   /* space between image and text */
    }
    .apropos-text{font-size: 0.95rem;}

    .contact-text{font-size: 0.95rem;}

    /* PRESSE GRID — tablets portrait */
    .presse .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}



/* ======================================
   Tablets landscape
   ====================================== */
  /* All tablets landscape */
  /* Ideal for multi-column layouts */

@media (min-width: 940px) and (max-width: 1366px) and (orientation: landscape) {

  .hero-banner {
        height: 140px;
    }

    .hero-banner h1,
    .hero-title {
        font-size: 1.9rem;
    } 

    /* INTRO */
    .intro-text { font-size: 0.95rem; margin: 16px auto 16px; }

    /*HOME GALLERY TITLE*/
    .home-gallery-title{font-size: 22PX; margin-top: 10px; margin-bottom: 20px;}
    /* CATEGORIES */
    .categories-container { 
      grid-template-columns: repeat(5, 1fr); 
      gap: 20px;
      margin: 5px auto 0;
      max-width: fit-content;
    }
    .category-btn { max-width: 150px; }
    .cat-label { font-size: 0.7rem; }

    /*GALERIES GRID*/
    .gallery-grid {grid-template-columns: repeat(5,1fr);gap: 14px;}
    .gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;     /* 🔑 FORCE PERFECT SQUARE */
    overflow: hidden;
    border-radius: 12px;
    }

    /*FOOTER*/
    .site-footer{ font-size: 0.8rem;}
    .footer-center{ text-align: center;}
    .footer-right{font-size: 0.68rem;}

    .apropos img {
        float: left;
        width: 42%;              /* 🔧 IMAGE WIDTH CONTROL */
        max-height: 400px;       /* 🔧 IMAGE HEIGHT CONTROL */
        object-fit: cover;       /* 🔧 CROP CONTROL */

        margin: 0 32px 20px 0;   /* space between image and text */
    }

    .apropos-text {
        font-size: 0.95rem;      /* 🔧 TEXT SIZE CONTROL */
    }

    .contact-text{font-size: 0.95rem;}

    /* PRESSE GRID — tablets landscape */
    .presse .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}









