@font-face {
font-family: FTT-CHIARO B;
src: url(TT_CHIARO-B.ttf);
}
@font-face {
font-family: FTT-RodinNTLG DB;
src: url(TT_RodinNTLG-DB.ttf);
}
@font-face {
font-family: GhM;
src: url(GhM.otf);
}
html, body {
    height:100%; 
    margin:0; 
    padding:0;
}

body {
    font-family: FTT-CHIARO B;
    background: linear-gradient(to bottom, #a6d5d6, #9dbeba, #38547b);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
        display: grid;
        min-height:100vh;
    grid-template-areas:
        "nav"
        "header"
        "main"
        "footer";
}

header {
    font-family: GhM;
    color: white;
    text-align: center;
    letter-spacing: 5px;
    position: fixed;
    width: 100%;
    padding: 2.5px;
  
}
.solid {
    background: black;
    font-family: FTT-CHIARO B;
    color: white;
    border: 2.5px solid #4db1b6;
    display: grid;
    margin: auto;
    width: 130vh;
    height: 10vh   
}

main.gallery {
    display: grid;
    text-align: center;
    grid-template-columns: auto auto;
    gap:25px;
    max-width: 80vw;
    margin: 0 auto;
}

main.gallery section {
    align-content: center;
}

main img {
    width:66vh;
}

button img {
    width: 100px;
    padding: 1rem;
}

footer {
    position: fixed;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    width: fixed;
}

button {
    background-color: rgba(255, 0, 0, 0);
    border: 2.5px solid rgba(139, 0, 0, 0);
    position: fixed;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    width: fixed;
    
}

nav {
    position: fixed;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    width: fixed;

}

/* basic reset for nav */
nav.nav {
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  width: 15%;
  overflow: hidden;
  transition: max-height 300ms ease;
  max-height: 0;           /* collapsed */
}

/* when open we give large enough max-height for content */
nav.nav.open {
  max-height: 100vh;       /* or a measured value if you prefer */
}

/* hide the element from layout when collapsed */
nav[hidden] {
  display: block;          /* keep block so max-height anim works; we'll collapse via max-height */
}

/* simple list styling */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: inherit;
  text-decoration: none;
}

/* accessible focus style */
nav a:focus,
.menu-toggle:focus {
  outline: 3px solid rgba(112, 112, 116, 0);
  outline-offset: 2px;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  nav.nav { transition: none; }
}

/* --- Base --- */
* { box-sizing: border-box; }


/* --- Thumbnail gallery --- */
.gallery {
  display: grid;
  text-align: center;
  grid-template-columns: auto auto;
  gap:25px;
  max-width: 80vw;
  margin: 0 auto;
  padding: 40px;
  list-style: none;
}
.thumb {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 2.5px solid #4db1b6;
}
.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;

}

/* --- Lightbox overlay (hidden by default) --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 9999;
}

/* Show when targeted (via #hash) */
.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

/* Lightbox content */
.lightbox__figure {
  margin: 0;
  overflow: hidden;
  max-width: min(1000px, 92vw);
  max-height: 88vh;
  display: grid;
  grid-template-rows: 1fr auto; /* image + caption */
}

.lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  margin: 0 auto;
  border: 2.5px solid #4db1b6;
}

.lightbox__caption {
  color: #fff;
  padding: 1rem;
  border: 2.5px solid #4db1b6;
  margin-top : 2vh;
  height: auto;
    background: #000;
  font-size: 1rem;


}
.lightbox__caption h2 {
  margin: 0 0 0.36rem 0;
  font-size: 1rem;
}
.lightbox__caption p {
  margin: 11;
  line-height: 1.4;
  opacity: .95;
}

/* Close button */
.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #fff8f8;
  background: #000000;
  border: 2.5px solid white;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
}
.lightbox__close:focus { outline: 2px solid #fff; outline-offset: 2px; }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .thumb img { transition: none; }
  .lightbox { transition: none; }
}

a {
    color: white;
    text-decoration: none;
}

a:hover {
    text-shadow: 2px 2px 5px #3c3c3c;
    color: #59d7ec;
}