/* RESET & BASE */
* {
  max-width: 100%;
  box-sizing: border-box;
}

body {
  background-image: url('https://img.magnific.com/free-vector/leopard-skin-editable-seamless-pattern_1108-551.jpg?semt=ais_hybrid&w=740&q=80');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: navy;
  font-family: Verdana;
  padding: 15px;
}

/* MAIN CONTAINER - mobile first (stacked) */
.box {
  max-width: 1000px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* PINK PADS */
header, nav, main, footer {
  background-color: #ffb6c1;
  border-radius: 20px;
  padding: 15px;
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* HEADER WITH BANNER BACKGROUND */
header {
  background-image: url('banner3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 15px 40px 15px;
  text-align: center;
}

header h1 {
  color: #1c1000;
  background-color: rgba(255, 226, 112, 0.9);
  padding: 10px 20px;
  border-radius: 10px;
  margin: 0;
  display: inline-block;
  word-wrap: break-word;
  font-size: 1.8rem;
}

/* NAVIGATION */
nav ul {
  padding-left: 20px;
}

nav li {
  margin: 8px 0;
}

nav a {
  color: navy;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* MAIN */
p {
  padding: 3px;
  line-height: 1.4;
}

/* IMAGES */
img {
  max-width: 100%;
  height: auto;
  padding: 10px;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.gallery img:hover {
  transform: scale(1.02);
  transition: transform 0.2s;
}

/* FIGURE & CAPTIONS */
figure {
  margin: 0;
  text-align: center;
}

figcaption {
  margin-top: 10px;
  font-weight: bold;
  color: #5a2a36;
}

/* DEFINITION LISTS */
dt {
  font-weight: bold;
  margin-top: 10px;
}

dd {
  margin-left: 20px;
  margin-bottom: 8px;
}

/* LIGHTBOX */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  cursor: pointer;
  text-align: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  margin-top: 5%;
  border-radius: 10px;
}

/* DESKTOP LAYOUT */
@media (min-width: 768px) {
  body {
    padding: 20px;
  }
  
  .box {
    margin: 100px auto;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 10px;
  }
  
  header {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
    padding: 100px 15px 50px 15px;
  }
  
  header h1 {
    font-size: 2.2rem;
  }
  
  nav {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    height: max-content;
  }
  
  main {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    height: max-content;
  }
  
  footer {
    grid-row: 3 / 4;
    grid-column: 1 / 3;
  }
  
  /* Desktop gallery - multiple columns */
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

/* LARGER DESKTOP */
@media (min-width: 1200px) {
  .box {
    max-width: 1200px;
  }
}

/* MOBILE HEADER */
@media (max-width: 768px) {
  header {
    padding: 50px 15px 25px 15px;
  }
  
  header h1 {
    font-size: 1.3rem;
  }
}