
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

header img{
   width: 100%;
}

h1 {
    font-size: 4.3rem;
    text-align: center;
    color: white;
}

nav{
  text-align: center;
}

nav a{
  color: white;
  text-decoration: none;
  padding: 2%;
}

h2{
  color: white;
}

/*kitty*/

.myText:hover + .hide {
    opacity: 1;
}

.hide {
  color: white;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center
}

.myText {
    text-align: center;
    color: white;
    font-size: 2rem;
}

html {
    font-size: 24px;
    line-height: 1.44;
    height: 100%;
    scroll-behavior: smooth;
}

dialog{
    position: fixed;
    top: 5vh;
    max-width: 100ww;
    max-height: 90wh;
    margin: 0 auto;
}

dialog::backdrop{
    background-color: rgb(16 16 16) /0.8;
}

dialog img{
    width: 100%;
}

#gallery{
    padding: 0.482rem;
    display: grid;
    gap: 0.482rem;
}
#gallery figcaption{  
    padding: 3%;
    width: 100%;
    display: inline-block;
    text-align: center;
    font-size: 0.833rem;
    border-radius: 50%;
    transform: translateY(); 
    color: #6b4a37;
    background: #C3A37D
}

#gallery img{
    width: 100%;
   object-fit: cover;
   aspect-ratio: 16/16;
   border-radius: 25%;
}

@media screen and (min-width: 500px) {
    #gallery{
        grid-template-columns: 1fr 1fr;
    }
    
}

@media screen and (min-width: 800px) {
    #gallery{
        grid-template-columns: 1fr 1fr 1fr;
    }
    
}


@media screen and (min-width: 1200px) {
    #gallery{
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    
}

  #gallery figure{
    overflow: hidden;
    cursor: pointer; 
  }

  #gallery img{
    transition: transform 0.5s;
  }

  #gallery figure:hover img{
    transform: scale(0.9);
  }

  dialog {
    display: none;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    border: none;
    margin: auto;
    padding: 0;
    transition: all 0.4s ease-out allow-discrete;
    place-items: center;
  }

  dialog[open] {
    display: grid;
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  /* this is quite esoteric */
  @starting-style {
    dialog[open] {
      opacity: 0;
      transform: scale(0.9) translateY(20px);
    }
  }

  dialog::backdrop {
    background-color: rgb(0 0 0 / 0);
    transition: all 0.4s ease-out, display 0.4s allow-discrete, overlay 0.4s allow-discrete;
  }
  /* also a bit advanced */
  @starting-style {
    dialog[open]::backdrop {
      background-color: rgb(0 0 0 / 0);
    }
  }

  dialog[open]::backdrop {
    background-color: rgb(0 0 0 / 0.8);
  }

  dialog button {
    background: none;
    color: #6b4a37;
    font-family: inherit;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    padding: 0.482rem;
  }

  dialog form{
    width: 100%;
    text-align: center;
    padding: 0 1.2rem 0.6rem;
  }

  dialog button:hover {
    background-color: #C3A37D;
    color: #6b4a37;
  }

  dialog button:active {
    transform: scale(0.95);
  }

    dialog button:focus {
      outline: none; 
      border-color: #6b4a37;
    }

footer {
    text-align: center;
    width: 100%; 
    color: #C3A37D;
    background-color: #6b4a37  
   
}

body{
  background-color: #4F763D;
}