html, body {
    margin: 0;
    padding: 0;
    font-family: courier;
    color: white;
    background: black;
}

h1 {
  display: block;      /* important */
  width: 100%;         /* important */
  text-align: center;
  margin: 20px 0;
}

h2 {
  display: block;      /* important */
  width: 100%;         /* important */
  text-align: center;
  margin: 20px 0;
}

h3  {
  display: block;      /* important */
  width: 100%;         /* important */
  text-align: center;
  margin: 20px 0;
}

#quote {
    color: black;   
    text-align: center;/* Text color */
    background-color: #ccc;/* Light gray background */
    padding: 50px;            /* Space inside the paragraph */
    border-radius: 50px;       /* Rounded corners */
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.6;
}

body {
    background: black; /* fallback */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; 
    height: 100vh;  

    background: url("/Picture1.png") no-repeat;
    background-size: 100% 100%;
    z-index: -2;
}
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}
#citation {
 text-align: center;

}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  transition: opacity 0.2s ease;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  cursor: pointer;
}
.page {
    position: fixed;

    top: 15%;       /* aligns with top opening */
    bottom: 14%;    
    left: 0;
    right: 0;
    margin: 0 auto;


    width: 90%;

    padding: 20px;
    background: rgba(0,0,0,0.85);

    border: 1px solid #222;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);

    overflow-y: auto; /* scroll INSIDE */
}

.centered-image {
  display: block;
  margin: 0 auto;
  max-width: 450px;
  width: 50%;
}

/* Apply grid only to the image container */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 10px;
    padding: 5px;
    background: #222;
}

.cell {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 square ratio */
    background: #444;
    overflow: hidden;
}
.featured {
    grid-column: span 3;
    padding-top: 65%;
    margin: 15px 0; /* more separation */
}

.lightbox img {
    cursor: pointer;
}

/* overlay */
.lightbox:focus img,
.lightbox:active img {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    z-index: 1000;
    background: black;
}

.inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.inner img:hover {
    opacity: 0.85;
    transform: scale(1.02);

}

.renni img:hover{
      opacity: 0.85;
    transform: scale(1.02);  
  
}
/* Responsive breakpoints */
@media (max-width: 900px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    .featured {
        grid-column: span 2;
        padding-top: 50%;
    }
}

@media (max-width: 600px) {
    .featured {
        grid-column: span 1;
        padding-top: 70%;
    }
}
@media (max-width: 600px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================= */
/* MOBILE                    */
/* ========================= */

@media (max-width: 700px) {

    .page {
        position: static;
        transform: none;

        width: auto;
        max-width: 100%;

        margin: 20px;
        padding: 15px;

        height: auto;
        overflow: visible;
    }
    
        .featured {
        grid-column: span 1;   /* no longer full width */
        padding-top: 100%;     /* back to square */
        margin: 0;   
        }

    body {
        overflow: auto;
    }

    body::before {
        background-size: cover;
    }

}