body{
  word-wrap: break-word;
  font-family: Verdana, sans-serif;
  font-size: 12px;
  letter-spacing: 0.005rem;
  line-height: 1.5;
  color: var(--color4);
  background-color: var(--color2);
}
:root{
    --color1: #390717;
    --color2: #6f0c23;
    --color3: #550a16;
    --color4: #f6e9e5;
    --color5: #9ad1e8;
    --color6: #1296cd;
  --color7: #cc5278;
    transition: all 0.9s ease;
}

a:link {
    color: var(--color5);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
a:visited {
    color: cadetblue;
}
a:hover {
    text-decoration: underline;
    color: var(--color6);
    cursor: pointer;
}
a:active {
    font-style: italic;
}
::selection {
    background-color: var(--color3);
    color: white;
}
::-webkit-scrollbar {
    width: 8px;
    height: 5px;
    border-radius: 5px;
}
::-webkit-scrollbar-track {
    background-color: var(--color2);
}
::-webkit-scrollbar-thumb {
    background-color:rgba(189, 102, 153, 0.5);
}







.close{
  color: var(--color4);
}
#myBtn {
  position: fixed;
  left: 0;
  margin: auto;
  writing-mode: vertical-lr;
  text-orientation: upright;
  border-radius: 0 8px 8px 0;
  background-color: #e784a5 ;
  border: 2px solid #6a1e2d;
}
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgba(0, 0, 0, 0.36); /* Black w/ opacity */
}
/* Modal Content/Box */
.modal-content {
  position: relative;
  background-color: var(--color1);
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 2px solid car(--color3);
  width: 80%; /* Could be more or less, depending on screen size */
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  animation-name: animatetop;
  animation-duration: 0.4s;
}
/* Add Animation */
@-webkit-keyframes animatetop {
  from {
    left: -300px;
    opacity: 0;
  }
  to {
    left: 0;
    opacity: 1;
  }
}
@keyframes animatetop {
  from {
    left: -300px;
    opacity: 0;
  }
  to {
    left: 0;
    opacity: 1;
  }
}
.close {
  float: right;
  font-size: 15px;
  font-weight: bold;
}
#myModal button{
  border: none;
  background-color: transparent;
  text-decoration: underline;
  cursor: pointer;
}


.container{
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  max-width:70vw;
  margin: auto;
  padding: 0.8em;
  border: 2px dashed var(--color1);
  border-radius: 10px;
}
header{
  background: url("pink-bg.png") var(--color3) repeat;
  padding: 0.5em;
  border-radius: 10px;
}
nav{
  display: flex;
  justify-content: space-around;
  padding: 0 12vw;
  margin: 0 2em;
  gap: 0.6em;
  background-color: var(--color1);
  border-radius: 15px;
  }
  #info{
    padding: 0.5em 0.9em;
    margin: 0.7em;
    background-color: var(--color1);
    border-radius: 12px;
        border-image-slice: 11 11 9 10 fill;
        border-image-width: 9px 9px;
        border-image-repeat: repeat round;
        border-style: solid;
        border-color: transparent;
        border-image-source: url("border10.png")
  }
  #info p{
    margin: 0.3em;
  }

.gallery{
  display: flex;
  flex-direction: column;
  padding: 0.5em;
  gap: 0.7em;
  max-width: 600px;
  margin: auto;
  background-color: var(--color1);
  color: var(--color1);
  border-radius: 10px;
}
.gallery .item {
  display: block grid;
  border-radius: 10px;
  padding: 0.5em;
  background-color: var(--color7);
  grid-template-areas:
    "image date"
    "image caption"
    "image tags";
}
.gallery .item.hide {
    display: none;
}
  .date {
    grid-area: date;
    text-align: end; 
    margin-right: 8px;
    height: fit-content;
    color: #9ad1e8
  }
  .caption {
    grid-area: caption;
    height: fit-content;
    margin: 0.5em;
  }
  .caption h4{
    margin: 5px;
  }
  .tags {
    grid-area: tags;
    color: #001c6a;
    height: fit-content;
    margin: 5px;
  }
  .image {
    grid-area: image;
    overflow: auto;
    margin: auto;
    border: 3px solid var(--color1);
    background-color: var(--color1); 
    border-radius: 5px;
    position: relative;
  max-width: 305px; 
  min-width: 260px;       
  }
/*
.img-wrap img{
  max-height: 350px;
  min-height: 200px;
  max-width: 300px;
  min-width: 260px;    
}
*/

.img-wrap{
  display: flex;
    flex-direction: row;
    gap: 5px;
  overflow: auto;
}
.images{
  max-height: 350px;
  min-height: 200px;
  max-width: 300px; 
  margin: auto;
}

.images img{
  max-height: 345px;
  min-height: 200px;
  min-width: 260px;    
  max-width: 300px; 
  transition: transform .5s;
}
.images img:hover{
  transform: scale(1.4); 
  overflow: visible;
  position: relative;
  z-index: 1;
}

    .desc-text {
      opacity: 0;
      display: none;
      transition: all 1s ease;
      margin: 0.4em 0.5em;
      position: absolute;
      bottom: 17px;
    }
      .desc-text p{
        margin-bottom: 0;
      }
    .show-desc{
      position: absolute;
      bottom: 0;
      margin: 0 0.5em 0.6em; 
      transition: all 0.5s ease;
      background-color: rgba(122, 216, 255, 0.28);
    }
      .show-desc:hover{
        opacity: 0;
        transition: all 0.5s ease;
      }
      .show-desc:hover + .desc-text {
        display: block;
        opacity: 1;
        transition: all 0.6s ease;
      }

      

.divvies {
  text-align: center;
  color: var(--color-6);
}

#totop{
   position: fixed;
   bottom: 0;
   right: 0;
   padding : 1px 4px;
  border-radius: 8px 8px 0 0 ;
  background-color: var(--color1) ;
  border: 2px solid #6a1e2d;
}


@media screen and (max-width: 768px) {
    .container{
        margin: 1.5em auto;
      max-width: 85vw;
        } 
  nav{
    padding: 0 2vw;
    margin: 0 1em;
    font-size: 11px;
  }
  section{
    font-size: 10px;
  }
}
@media screen and (max-width: 500px) {
.gallery .item{
  grid-template-areas: 
  "date"
  "caption"
  "image" 
  "tags";}
}
