
body{
  background:#ffcfe5;
  font-family: Garamond;
  margin: 0;
  overflow-x: hidden;
}

.site {
  width: 1000px;
  margin: 0 auto;
}
  
.container {
  width: 750px;
  margin: auto;
  text-align: right; 
}

.header {
  position: relative;
  margin: auto;
}

.header img {
  display: block;
}

.archive-nav {
  position: absolute;
  
  top: 30px;
  left: 565px;
}

.archive-nav {
  background: #c40a61;
  padding: 10px;
  border: 2px solid white;
  white-space: nowrap;
}

.archive-nav a,
.archive-nav summary {
  color: white;
  text-decoration: none;
  margin: 10px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.archive-nav a:hover,
.archive-nav summary:hover {
  background: white;
  color: hotpink;
}

.nav-dropdown {
  display: inline-block;
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  
  background: #ad9c6d;
  border: 2px solid white;
  padding: 10px;
  min-width: 180px;
  z-index: 10;
}

.nav-dropdown[open] .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  margin: 5px 0;
  color: #8a004f;
}

.nav-gif {
 margin-top: 10px;
 margin-left: 12px;
}

.main {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  
  width: 900px;
  margin: 40px auto;
}

.archive-layout {
  width: 1000px;
  margin: 30px auto;
}

.archive-top-menu {
  background: #ad9c6d;
  padding: 15px 20px;
  border: 2px solid white;
  font-size: 14px;
  margin-bottom: 20px;
}

.archive-top-menu h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #c40a61;
  border-bottom: 1px dotted white;
}

.archive-top-menu a {
  color: #8a004f;
  text-decoration: none;
  transition: 0.2s;
  font-weight: bold;
  padding: 4px 8px;
  display: inline-block;
}

.archive-top-menu a:hover {
  color: white;
  background: hotpink;
  padding: 2px 4px;
}

.archive-top-menu > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.archive-top-menu li {
  margin: 0;
}

.dropdown summary {
  cursor: pointer;
  font-weight: bold;
  color: #c40a61;
  margin-top: 10px;
}

.dropdown[open] summary {
  color: white;
}

.dropdown ul {
  display: block;
  margin-top: 10px;
  padding-left: 20px;
}

.dropdown li {
  margin: 6px 0;
}


.archive-main {
  width: 100%;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  gap: 12px;
  justify-content: center;
}

.image-grid img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  border: 2px solid black;
  cursor: pointer;
  background: black;
  transition: 0.2s;
}

.image-grid img:hover {
  transform: scale(1.05);
  z-index: 2;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  
  width: 100vw;
  height: 100vh;
  
  background: rgba(0,0,0,0.8);
  
  
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  color: white;
  font-size: 3em;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.lightbox-close {
  top: 20px;
  right: 40px;
}

.lightbox-prev {
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
}

.box {
  background: hotpink;
  border: 2px solid white;
  padding: 8px;
  margin-bottom: 10px;
}
 
 
 
 
 
 
 
 
 
 
 