body{
   margin: 0;
   min-height: 100vh;

   background-image: url("static/photo1.jpg"); 
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
}

nav{
   position: relative;
   box-sizing: border-box;
   position:relative;
   width: 100%;
   min-height: 60px;
   padding: 10px 20px;
   color: #222;

   display: flex;
   justify-content: center;
   align-items: center;
   font-size: 17px;
   padding: 20px;
   gap: 100px;

   background-color: rgba(188, 188, 188, 0.134);
}

nav a {
   display: inline-block;
   margin: 0;
   padding: 0;
   font-size: 17px;
   line-height: 1.5;
   color: black;
   text-decoration: none;
   white-space: nowrap;
   flex-shrink: 0;
}

nav a:hover {
   color: rgba(255, 0, 0, 0.928);
   text-decoration: none;
   justify-content: center;
   margin-right: 0 10px;

}

nav .instagram {
  position: absolute;
  right: 57px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

nav .instagram img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

nav .Portfolio {
  color: rgba(0, 0, 0, 0.928);
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  display: flex;
  margin-left: 10px;
}

@media (max-width: 1100px) {
   nav {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
   }

   nav .instagram {
      position: static;
      transform: none;
   }

   nav .Portfolio {
      position: static;
      transform: none;
      margin-left: 0;
   }
}

.projects,
.projects* {
   box-sizing: border-box;
}

.projects {
   position: relative;
   width: 100%;
   font-family: Arial, sans-serif;
   color: #333;
}

.category-radio {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: 0;
   overflow: hidden;
   clip-path:inset(50%);
   white-space: nowrap;
}

.projects-header {
   padding: 40px 130px 60px 140px;
   background-color: transparent;
}

.projects-header h1 {
   margin:0 0 40px;
   font-family: Arial, sans-serif;
   font-size:40;
   font-weight: 700;
   line-height:1.2;
}

.projects-intro {
   display: grid;
   grid-template-columns: 240px minmax(0, 1fr);
   column-gap: 218px;
   align-items: start;
}

.projects-categories {
   display: flex;
   flex-direction: column;
   gap: 12px;
   align-items: flex-start;
}

.category-button {
   display: inline-block;
   padding: 4px 0;
   font-size: 17px;
   line-height: 1.5;
   color: #777;
   cursor: pointer;
}

.category-button:hover {
   color:#222;
}

.projects-description {
   min-width: 0;
   max-width: none;
}

.projects-description p {
   margin: 0;
   font-size: 16px;
   font-weight:400;
   line-height: 1.8;
   display: none;
   color: #555;
   overflow-wrap: anywhere;
}

#choose-discovered-past:checked ~ .projects-header label [for="choose-discovered-past"],
#choose-new-city:checked ~ .projects-header label [for="choose-new-city"],
#choose-polaroids:checked ~ .projects-header label [for="choose-polaroids"],
#choose-other-works:checked ~ .projects-header label [for="choose-other-works"]
{
   color:#222;
   text-decoration: underline;
   text-underline-offset: 6px;
}

#choose-discovered-past:checked ~ .projects-header .description-past,
#choose-new-city:checked ~ .projects-header .description-new-city,
#choose-polaroids:checked ~ .projects-header .description-polaroids,
#choose-other-works:checked ~ .projects-header .description-other-works {
   display: block;
}  

.projects-content {
   padding: 70px 130px 70px 140px;
   background-color: #fff;
}

.project {
   display: none;
   grid-template-columns: repeat(4, minmax(0,1fr));
   gap: 50px 40px;
   align-items: start;
}

.projects img {
   display: block;
   width: 100%;
   aspect-ratio: 4/3;
   object-fit: contain;
}

.project a{
   display:block;
   min-width: 0;
   cursor: zoom-in;
}

#choose-discovered-past:checked ~ .projects-content #discovered-past,
#choose-new-city:checked ~ .projects-content #new-city,
#choose-polaroids:checked ~ .projects-content #polaroids,
#choose-other-works:checked ~ .projects-content #other-works {
   display: grid;
}

#choose-discovered-past:focus-visible ~ .projects-header label [for="choose-discovered-past"],
#choose-new-city:focus-visible ~ .projects-header label [for="choose-new-city"],
#choose-polaroids:focus-visible ~ .projects-header label [for="choose-polaroids"],
#choose-other-works:focus-visible ~ .projects-header label [for="choose-other-works"]
{
   outline: 2px solid #555;
   outline-offset: 4px;
}

@media(max-width:900px){
   .projects-intro {
      gap: 30px;
   }

   .project {
      grid-template-columns: repeat(3, minmax(0,1fr));
      gap: 30px;
   }
}

@media(max-width:900px){
   .projects-content
   .projects-header{
     padding-left: 30px;
     padding-right:30px;
   }
   .projects-intro {
      grid-template-columns: 1fr;
      gap:30px;
   }
   .project {
      grid-template-columns: repeat(2,minmax(0,1fr));
      gap: 30px 20px;
   }
}

body > header {
   position:sticky;
   top: 0;
   z-index: 100;
   background-color: #fff;
   background-image:url("static/photo1.jpg");
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
}

footer {
   color: rgba(67, 67, 67, 0.75);
   text-align: center;
   position: static;
   font-size: 15.5px;
   bottom: 1px;
   width: 100%;
   padding: 24px 0;
}

footer p {
   margin: 0;
}

.lightbox {
   display: none;
   position:fixed;
   inset:0;
   z-index: 1000;
   box-sizing:border-box;
   padding: 40px;
   background-color: rgba(0, 0, 0, 0.75);
   justify-content: center;
   align-items: center;
}

.lightbox:target{
   display:flex;
}

.lightbox img{
   display: block;
   max-width: 100%;
   max-height: 100%;
   width:auto;
   height:auto;
   object-fit:contain;
}

.lightbox-close {
   position:absolute;
   top:12px;
   right:20px;
   color: #fff;
   font-size: 36px;
   line-height: 1;
   text-decoration: none;
}

