/* BASE */
*{
  box-sizing:border-box;
}

body{
  margin:0;
  background:#000;
  color:#fff;
  font-family:Arial, Helvetica, sans-serif;
  overflow-x:hidden;
}

/* PAGE */
.photos-page{
  max-width:1200px;
  margin:auto;
  padding:40px 20px 80px;
}

.photos-title{
  text-align:center;
  font-size:48px;
  margin:0 0 20px;
  letter-spacing:2px;
}

.photos-intro{
  text-align:center;
  color:#ccc;
  margin-bottom:35px;
  font-size:18px;
}

/* VIEWER */
.photo-viewer{
  position:relative;
  width:100%;
}

.main-photo-wrap{
  width:100%;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
}

.main-photo{
  width:100%;
  max-height:720px;
  object-fit:contain;
  display:block;
  background:#000;
}

/* NAV */
.photo-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:55px;
  height:55px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.55);
  color:white;
  border:0;
  font-size:34px;
  font-weight:bold;
  cursor:pointer;
  border-radius:50%;
  transition:.25s;
  user-select:none;
  z-index:20;
}

.photo-nav:hover{
  background:rgba(180,0,0,.9);
  box-shadow:0 0 15px red;
}

.photo-prev{
  left:15px;
}

.photo-next{
  right:15px;
}

/* THUMBS */
.thumb-row{
  display:flex;
  gap:18px;
  overflow-x:auto;
  margin-top:22px;
  padding-bottom:10px;
}

.thumb-row img{
  width:155px;
  height:100px;
  object-fit:cover;
  cursor:pointer;
  opacity:.55;
  border:2px solid transparent;
  transition:.25s;
  flex-shrink:0;
  background:#000;
}

.thumb-row img:hover{
  opacity:1;
  transform:scale(1.05);
}

.thumb-row img.active-thumb{
  opacity:1;
  border-color:#ff0000;
  box-shadow:0 0 14px rgba(255,0,0,.6);
}

/* FOOTER */
footer{
  width:100%;
  text-align:center;
  padding:26px 0;
  border-top:1px solid #222;
  color:#aaa;
  font-size:14px;
  background:#050505;
}

/* RESPONSIVE */
@media(max-width:700px){
  .photos-title{
    font-size:34px;
  }

  .photos-page{
    padding:32px 12px 70px;
  }

  .main-photo{
    max-height:520px;
  }

  .photo-nav{
    width:42px;
    height:42px;
    font-size:26px;
  }

  .photo-prev{
    left:8px;
  }

  .photo-next{
    right:8px;
  }

  .thumb-row{
    gap:12px;
  }

  .thumb-row img{
    width:120px;
    height:80px;
  }
}
