/* ---------------------------------- CSS Components ----------------------------------- */

:root {
   
    /* ---------------- Sizing & Layout ---------------- */
   
    --max-width: 1400px;
    
/* ---------------- Laptops and PCs ---------------- */

    /* ---------------- Typography ---------------- */
    
    --font-size-footer: clamp(0.8rem, 1.2vw, 1.3rem);
    --font-size-small: clamp(0.8rem, 1.4vw, 1.3rem);
    --font-size-medium: clamp(1.2rem, 1.6vw, 1.7rem);
    --font-size-medium-small: clamp(1.1rem, 1.5vw, 2rem);
    --font-size-large: clamp(2.2rem, 3vw, 5rem);
    --font-size-xlarge: clamp(3rem, 5vw, 9rem);
    --font-size-xsmall: clamp(0.75rem, 1vw, 0.95rem);


    --font-size-lb-title: clamp(1.5rem, 2vw, 4.4rem);
    --font-size-lb-date: clamp(0.9rem, 1.1vw, 1.1rem);
    --font-size-lb-details: clamp(0.75rem, 1vw, 1rem);

    /* ---------------- Spacing & Margins ---------------- */

    --paragraph-spacing: clamp(0.5rem, 2.4vh, 5rem);
    --padding-small: clamp(0.8rem, 1.39vh, 2rem);
    --padding-clamp: clamp(1.5vh, 1.5vw, 3vh);
    --spacing-large: 3%;

    /* -------------------- Colour --------------------- */
    --background-dark: #ffffff;
    --hover-color: #ff9800;
    --navy-color: #002147;

    /* ------------------- Others ------------------- */

    --line-height: clamp(1, 1.6, 1.7);
    --subsection-spacing: 2%;
    --header-footer-spacing: clamp(1.2rem, 3%, 5rem);
}

/* ---------------- Phones only ---------------- */
/* 📲 Portrait Mode*/
@media screen and (max-width: 600px) and (orientation: portrait) and (hover: none) and (pointer: coarse) {
    :root {
        /* ---------------- Typography ----------------*/
        --font-size-small: clamp(0.8rem, 2vw, 1.5rem);
        --font-size-medium-small: clamp(1rem, 1.4vw, 3.8rem);
        --font-size-medium: clamp(1.1rem, 1.5vw, 3.9rem);
        --font-size-large: clamp(1.6rem, 1.9vw, 3.9rem);
        --font-size-xlarge: clamp(2.4rem, 4vw, 9rem);
        --line-height: clamp(1.5, 1.6, 1.7);
    }
}
/* 📲 Landscape Mode*/
@media (min-width: 601px) and (max-width: 800px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
    :root {
        /* ---------------- Typography ----------------*/
        --font-size-small: clamp(0.6rem, 1.9vw, 1.3rem);
        --font-size-medium-small: clamp(1.1rem, 1.5vw, 4rem);
        --font-size-medium: clamp(1rem, 1.4vw, 3.9rem);
        --font-size-large: clamp(1.7rem, 2vw, 4rem);
        --font-size-xlarge: clamp(2.4rem, 4vw, 9rem);
        --line-height: clamp(1.5, 1.6, 1.7);
    }
}

/* 📲 iPads & Tablets in Portrait Mode*/
@media screen and (min-width: 601px) and (max-width: 1024px) and (orientation:portrait) and (hover: none) and (pointer: coarse) {
    :root {
        --font-size-small: clamp(1.5rem, 1.4vw, 1.7rem);
        --font-size-medium-small: clamp(1.2rem, 1.1vw, 1.4rem);
        --font-size-medium: clamp(1.4rem, 1.4vw, 1.7rem);
        --font-size-large: clamp(2.5rem, 3.2vw, 4rem);
        --font-size-xlarge: clamp(3.5rem, 5.5vw, 5.5rem);
        --line-height: clamp(1.4, 1.5, 1.6);
    }
}

/* 📲 iPads & Tablets in Landscape Mode*/
@media screen and (min-width: 901px) and (max-width: 1366px)  and (orientation: landscape) and (hover: none) and (pointer: coarse) {
    :root {
        --font-size-small: clamp(1.5rem, 1.4vw, 1.7rem);
        --font-size-medium-small: clamp(1.2rem, 1.1vw, 1.4rem);
        --font-size-medium: clamp(1.4rem, 1.4vw, 1.7rem);
        --font-size-large: clamp(2.5rem, 3.2vw, 4rem);
        --font-size-xlarge: clamp(3.5rem, 5.5vw, 5.5rem);
        --line-height: clamp(1.4, 1.5, 1.6);
    }
}

/* 🖥️ Large Screens (TVs & Ultra-wide Monitors) */
@media screen and (min-width: 1800px) {
    :root {
        --font-size-small: clamp(1.5rem, 1.4vw, 1.7rem);
        --font-size-medium-small: clamp(1.2rem, 1.2vw, 1.6rem);
        --font-size-medium: clamp(1.4rem, 1.4vw, 1.7rem);
        --font-size-large: clamp(1.8rem, 2.8vw, 4rem);
        --font-size-xlarge: clamp(3.5rem, 5.5vw, 5.5rem);
        --line-height: clamp(1.3, 1.5, 1.7);
    }
}


/* ---------------------------------  Base Typography ---------------------------------- */

body {
    font-family: 'Roboto', sans-serif;
    color: var(--navy-color);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background: #f2f2f2 ;
}

h1, h2 {

    margin-bottom: 0;
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--navy-color);
    font-size: var(--font-size-large);
}


a:hover {
    color: var(--hover-color);
}

/* --------------------------------- Global Components --------------------------------- */

body {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

body.loaded {
    opacity: 1;
    visibility: visible;
}

/* ------------------------- Top Navigation ------------------------ */

.topnav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: var(--max-width);
    width: 94vw;    
}

.topnav--top-space {
    padding-bottom: 1.5%; 
    border-bottom: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.8rem, 1.39vh, 2rem) clamp(1rem, 2vw, 5rem);
    max-width: var(--max-width);
    width: 100%;
    background-color: #0e0e0e;
}

.nav-links--gallery {
    position: relative;
}

.nav-title {
    margin: 0 auto;
}

.nav-links--gallery .nav-title{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
}

.nav-links--gallery .categories-selector{
  margin-left: auto;
}

.topnav a,
.topnav p {
    font-family: "Poppins", sans-serif;
    display: flex;
    align-items: center;
    font-size: var(--font-size-medium-small);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    color: #F2F2F2;
    margin: 0;
}

.topnav a:hover {
    color: #CFCFCF;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* ----------------------- Categories Selector ----------------------- */

.categories-selector {
    margin-left: 0;
    position: relative;
}

.categories-selector button {
    font-family: "Poppins", sans-serif;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--font-size-medium-small);
    line-height: 1;
    color: #F2F2F2;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.categories-selector .chevron{
  width:0.45rem;
  height:0.45rem;
  border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(-45deg); /* ▼ */
  margin-top:-2px;
}

.dropdown-content {
  display: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 12rem;
    background-color: var(--background-dark);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.dropdown-content a {
    font-family: "Poppins", sans-serif;
    display: flex;
    align-items: center;
    padding: var(--padding-small);
    text-decoration: none;
    color: #0e0e0e;
    z-index: 999;
}

.dropdown-content a:hover {
    z-index: 999;
    color: 0e0e0e;
    background: #1F1F1F;
}

.categories-selector button:hover {
    color: #CFCFCF;
    text-decoration: underline;
    text-underline-offset: 6px;
}


.categories-selector:hover .chevron{
  transform:rotate(135deg); /* ▲ */
  transition:transform 0.2s ease;
}

#category-dropdown {
    display: none; /* Ensure dropdown is hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

#category-dropdown.open {
    display: block; /* Show when open */
}

/* ----------------------------- Header ------------------------------ */

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    margin-top: calc(var(--padding-small) * 1.5);
    margin-bottom: calc(var(--padding-small) * 1.5);
    padding: clamp(4vh, 5vh, 5vh) 2vw;
    max-width: var(--max-width);
    width: 94vw;
    height: clamp(1.5rem, 2vh, 2rem);
    overflow: hidden;
    min-height: 45px;
    padding-left: 0;
    padding-right: 0;
}

.header-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 93%;
    object-fit: fill;
    z-index: -1;
}

.gallery-name {
    margin: 0;
    font-size: var(--font-size-xlarge);
    text-align: center;
    text-transform: uppercase;
    color: #F2F2F2;
    font-family: "Cormorant Garamond", serif;
}



/* --------------------- Description sections ----------------------- */

.description-section {
    display: grid;
    grid-template-columns: 1.5fr 1.4fr;
    column-gap: var(--spacing-large);
    margin: 0 auto;
    max-width: var(--max-width);
    width: 95vw;
    min-height: 57vh;
    padding: var(--padding-clamp);
    padding-bottom: 0;
    padding-top: 0;
    box-sizing: border-box;
    align-items: center;   /* ← ADD THIS */
}

.description-section--swap {
    grid-template-columns: 1.4fr 1.5fr;
}

.description-section--swap .description-text h2,
.description-section--swap .description-text p {
    margin-left: 0;
}

.description-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f1f3f5;
}

.description-text h2,
.about-description-text h2 {
    margin-top: 2.5vh;
    margin-left: var(--padding-clamp);
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-large);
    padding:var(--padding-small);
    color: #1a1a1a;
}

.description-text p,
.about-description-text p {
    margin-top: 0;
    margin-left: var(--padding-clamp);
    font-family: 'Roboto', sans-serif;
    font-size: var(--font-size-medium);
    line-height: var(--line-height);
    padding: var(--padding-small);
    color: #2f2f2f;
}

.description-text .gallery-button {
    align-self: flex-start;
    width: fit-content;
    padding: var(--padding-small);
    font-size: var(--font-size-medium);
    text-decoration: none;
    background-color: #5a5a5a;
    color: #ffffff;
    transition: background-color 0.3s ease;
    margin-left: var(--padding-clamp);
    margin-bottom: var(--padding-clamp);
}

.gallery-button {
    margin-top: auto;
    margin-left: var(--padding-small);
    margin-bottom: calc(var(--paragraph-spacing) / 2);
}

.gallery-button:hover {
  background-color: #1a1a1a;
  transform: translateY(-1px);
}

.description-photo {
    display: block;
    position: relative;
    width: 98%;
    overflow: hidden;
    grid-column: 1;
    justify-self: center;
}

.description-photo--swap {
    grid-column: 2;
}

.description-photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* ------------------------ Load more button ----------------------- */

.gallery-actions{
  display: flex;
  justify-content: center;
  padding-top: 2.2rem;           
  padding-bottom: 0.5rem;
}

.load-more{
  font-family: "Poppins", sans-serif;
  font-size: var(--font-size-medium-small);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: var(--padding-small);
  border-radius: 999px;
  border: 1px solid #1F1F1F;
  background: #F2F2F2;
  color: #1F1F1F;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.load-more:hover{
  background: #1F1F1F;
  color: #F2F2F2;
  transform: translateY(-1px);
}

.load-more:active{
  transform: translateY(0px);
}

.load-more:focus-visible{
  outline: 2px solid #1F1F1F;
  outline-offset: 4px;
}

.load-more::after{
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);     /* ▼ */
  margin-top: -2px;
  transition: transform 150ms ease;
}

/* ----------------------------- Grid ---------------------------- */

.gallery{
  margin: 0 auto;
  max-width: var(--max-width);
  width: 94vw;
  padding: var(--padding-clamp);
  padding-bottom: 0;
  padding-top: 0.5vh;
}

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

.gallery-grid a{
  display: block;
  overflow: hidden;
}

.gallery-grid img{
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 200ms ease;
}

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

/* ----------------------------- Footer ---------------------------- */

.footer {
    border-top: 1px solid #1F1F1F;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: var(--padding-clamp);
    max-width: var(--max-width);
    width: 99%;
    padding: clamp(0.5rem, 1.2vh, 2rem) clamp(1rem, 2vw, 5rem);
    background-color: #0e0e0e;
    justify-content: space-between;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    gap: 1.5vw;
    font-size: var(--font-size-medium-small);
}

.footer a,
.footer p {
    font-family: "Poppins", sans-serif;
    margin: 0;
    color: #F2F2F2;
    font-size: var(--font-size-footer);
}

/* ---------------------------- Lightbox --------------------------- */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear .25s;
}

.lightbox.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .25s ease;
}

.lightbox__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.75);
}

.lightbox__panel{
  position: relative;
  width: min(96vw, 1400px);
  height: 96dvh;
  margin: 0;
  background: #0e0e0e;
  color: #F2F2F2;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  transform: scale(.98);
  transition: transform 0.25s ease;
}

.lightbox.is-open .lightbox__panel{
  transform: scale(1);
}

/* CENTER IMAGE + LEGEND AS ONE BLOCK */
.lightbox__content{
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* IMAGE AREA */
.lightbox__figure{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
  background: radial-gradient(circle, #000 60%, #050505);
}

.lightbox__figure img{
  display: block;
  max-width: min(96vw, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
}

/* LEGEND */
.lightbox__meta{
  width: 100%;
  padding: 0.85rem 1.2rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-sizing: border-box;
}

#lightbox-title{
  font-family: "Cormorant Garamond", serif;
  font-size: var(--font-size-lb-title);
  color: #F2F2F2;
  margin: 0;
  line-height: 1.1;
  overflow-wrap: break-word;
}

#lightbox-sub{
  margin: 3vh 0 0.5rem 0;
  font-family: "Poppins", sans-serif;
  font-size: var(--font-size-lb-date);
  line-height: 1.1;
  color: #CFCFCF;
}

.lightbox__exif{
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: var(--font-size-lb-details);
  line-height: 1.1;
  color: #F2F2F2;
}

/* CLOSE BUTTON */
.lightbox__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color: #F2F2F2;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  z-index:10;
}

.lightbox__close:hover{
  background: rgba(255,255,255,0.08);
}

/* NAVIGATION */
.lightbox__nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color:#F2F2F2;
  cursor:pointer;
  font-size: 28px;
  line-height: 1;
}

.lightbox__nav--prev{ left: 10px; z-index:10; }
.lightbox__nav--next{ right: 10px; z-index:10; }

.no-scroll {
  overflow: hidden;
}

.lightbox.pseudo-fullscreen .lightbox__panel {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
}

.lightbox__hint {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.lightbox__hint[hidden] {
  display: none !important;
}

.lightbox.is-touch .lightbox__nav {
  display: none !important;
}

.lightbox.is-touch .lightbox__panel {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
}

.lightbox.is-touch #lightbox-img {
  max-width: 100vw;
}

#lightbox-img{
  transition: opacity 0.15s ease;
}

.lightbox.is-non-touch .lightbox__hint--swipe {
  display: none !important;
}

.lightbox.is-touch .lightbox__hint--desktop {
  display: none !important;
}

.lightbox.is-non-touch .lightbox__hint--desktop {
  display: block;
}

.lightbox.is-touch .lightbox__hint--swipe {
  display: block;
}



/*.lightbox.is-touch .lightbox__meta{
  padding: 0.42rem 0.75rem 0.55rem;
}

.lightbox.is-touch #lightbox-title{
  line-height: 0.98;
  margin: 0;
}

.lightbox.is-touch #lightbox-sub{
  margin: 0.4rem 0 0.4rem 0;
  line-height: 1.02;
}

.lightbox.is-touch .lightbox__exif{
  line-height: 1.02;
  margin: 0;
}*/

/* ------------------------- Media changes ------------------------- */

/* -------------------- Normal screens ---------------------- */

/* -------------- Small browser windows -------------- */

@media (max-width: 900px)
 and (hover: hover) 
 and (pointer: fine) { 

  .description-section,
  .description-section--swap {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    row-gap: 3vh;
  }

  .description-photo,
  .description-photo--swap {
    grid-column: 1;
    width: 100%;
    min-height: auto;
  }

  .description-text {
    grid-column: 1;
    width: 100%;
  }

  .gallery-button {
    margin-top: 1.5rem;
  }
}

/* --------------- Very large screens ---------------- */

@media screen and (min-width: 1800px) {
    .header {
       display: flex;
       height: clamp(4rem, 4vh, 4.5rem);
    }

  #lightbox-title{
    margin bottom: 0;
    padding-bottom: 0;
    line-height: 1;
  }


  #lightbox-sub{
    margin-top: 1.5vh;
    margin-bottom: 1.5vh;
    line-height: 1;
    color: #CFCFCF;
  }

  :root{
    --font-size-lb-title: clamp(1.5rem, 2vw, 4.4rem);
    --font-size-lb-date: clamp(1rem, 1.3vw, 1.2rem);
    --font-size-lb-details: clamp(1rem, 1.3vw, 1.2rem);
  }
}

/* ------------------ Tablets and Phones -------------------- */

/* --------------- Tablet (landscape) ---------------- */

@media (min-width: 901px) and (max-width: 1366px) 
 and (orientation: landscape)
 and (hover: none) 
 and (pointer: coarse) {

  .description-photo {
    max-width: 42vw;
    justify-self: center;
  }

  .header {
    min-height: 40px;
  }

  #lightbox-title{
    margin bottom: 0;
    padding-bottom: 0;
    line-height: 1;
  }


  #lightbox-sub{
    margin-top: 1.5vh;
    margin-bottom: 1.5vh;
    line-height: 1;
    color: #CFCFCF;
  }

  :root{
    --font-size-lb-title: clamp(1.2rem, 4vh, 2.2rem);
    --font-size-lb-date: clamp(0.7rem, 2.3vh, 1.5rem);
    --font-size-lb-details: clamp(0.7rem, 2vh, 1.5rem);
  }

  .description-text h2,
  .about-description-text h2 {
      margin-top: 0;
      margin-bottom: 0;
  }

  .description-text p,
  .about-description-text p {
    margin-top: 0;
    margin-left: var(--padding-clamp);
    font-family: 'Roboto', sans-serif;
    font-size: var(--font-size-medium);
    line-height: var(--line-height);
    padding-top: 0;
  }

  .description-section {
    min-height: 55vh;
    margin-bottom: 0;
  }
}

/* --------------- Tablets (portrait) ---------------- */

@media screen and (min-width: 601px) and (max-width: 1024px)
 and (orientation: portrait)
 and (hover: none) 
 and (pointer: coarse) {
  
  .header {
    height: 30px;
        min-height: 20px;
  }

  .description-text h2,
  .about-description-text h2 {
    margin-top: 0;
    margin-bottom: 0;
  }


  #lightbox-title{
    margin bottom: 0;
    padding-bottom: 0;
    line-height: 1;
  }


  #lightbox-sub{
    margin-top: 1vh;
    margin-bottom: 1vh;
    line-height: 1;
    color: #CFCFCF;
  }

 .description-section,
  .description-section--swap {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    row-gap: 0;
  }

  .description-photo,
  .description-photo--swap {
    grid-column: 1;
    width: 100%;
    min-height: auto;
  }

  .description-text {
    grid-column: 1;
    width: 100%;
  }

  :root{
    --font-size-lb-title: clamp(2rem, 2.7vh, 2.5rem);
    --font-size-lb-date: clamp(1rem, 1.7vh, 1.7rem);
    --font-size-lb-details: clamp(1rem, 1.7vh, 1.7rem);
  }

  .footer {
     margin-top: 0;
  }


  .description-section {
    min-height: 40vh;
    margin-bottom: 13px;
  }
}

/* --------------- Phones (landscape) ---------------- */

@media (min-width: 601px) and (max-width: 800px) 
 and (orientation: landscape) 
 and (hover: none) 
 and (pointer: coarse) {
  
  .header {
    height: 40px;
    min-height: 30px;
  }

  .description-text h2,
  .about-description-text h2 {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
  }

  .description-text p,
  .about-description-text p {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
  }

  .gallery-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .gallery-button {
    margin-top: 1.5rem;
  }

  .gallery-button {
    padding: 0;
    margin-left: 0;
  }

  .description-text .gallery-button {
    padding: clamp(0.6rem, 1.5vh, 0.8rem);
    text-decoration: none;
    background-color: #5a5a5a;
    color: #ffffff;
    transition: background-color 0.3s ease;
    margin-left: var(--padding-clamp);
    margin-top: clamp(0.6rem, 1.5vh, 0.8rem);
  }

  .dropdown-content a  {
    margin-top: 0;
    margin-bottom: 3vh;
    padding-bottom: 0;
  }

  :root{
    --font-size-lb-title: clamp(1.2rem, 1.4vh, 2rem);
    --font-size-lb-date: clamp(0.4rem, 0.6vh, 1.1rem);
    --font-size-lb-details: clamp(0.4rem, 0.6vh, 1.1rem);
  }

  #lightbox-title{
    margin bottom: 0;
    padding-bottom: 0;
    line-height: 1;
  }

  #lightbox-sub{
    margin-top: 1.5vh;
    margin-bottom: 1.5vh;
    line-height: 1;
  }

  .lightbox__exif{
    margin: 0;
    padding: 0;
    line-height: 1;
  }

  .lightbox__figure img{
    max-height: 60vh
  }

  .lightbox__meta{
    padding: 0.3rem 1.2rem 1.4rem;
  }
  
  .lightbox.is-touch .lightbox__figure img{
    max-width: 100%;
  }
  
}

/* --------------- Phones (portrait) ----------------- */

@media (max-width: 600px)
 and (hover: none) 
 and (pointer: coarse) {

  .header {
    height: 30px;
    min-height: 20px;
    margin-bottom: 0;
  }

.nav-title{
  white-space: nowrap;
}
  .description-photo {
    margin-top: 2vh;
    margin-bottom: 1vh;
  }

  .nav-links {
    padding: clamp(0.7rem, 1.29vh, 1.9rem) clamp(1rem, 2vw, 5rem);
  }

  .description-section,
  .description-section--swap {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    row-gap: 0;
  }

  .description-photo,
  .description-photo--swap {
    grid-column: 1;
    width: 100%;
    min-height: auto;
  }

  .description-text {
    grid-column: 1;
    width: 100%;
  }

  .gallery-button {
    margin-top: 0;
  }
  
  .description-text h2,
  .about-description-text h2 {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
  }

  .description-text p,
  .about-description-text p {
    margin-top: 0;
    margin-left: 0;
  }

  .nav-links--gallery {
    margin-top: 2vh;
    margin-bottom: 1vh;
    display:flex;
    justify-content:space-between;
    align-items:center;
  }

  .nav-links--gallery .nav-title {
    position: static;
    transform: none;
    left: auto;
  }

  .gallery {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .gallery-grid{
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
  }

  #lightbox-title{
    margin bottom: 0;
    padding-bottom: 0;
    line-height: 1;
  }

  #lightbox-sub{
    margin-top: 2vh;
    margin-bottom: 2vh;
    line-height: 1;
    color: #CFCFCF;
  }

  :root{
    --font-size-lb-title: clamp(1.4rem, 1.6vh, 2rem);
    --font-size-lb-date: clamp(0.8rem, 1.2vh, 1.5rem);
    --font-size-lb-details: clamp(0.8rem, 1.2vh, 1.5rem);
  }

  .description-text .gallery-button {
    padding: clamp(0.6rem, 1.19vh, 1.8rem);
  }

}