* {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'sen', sans-serif;
}

body {
  margin: 0;
  padding: 0;
}

p{
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color:#222;
  font-weight: 300;

  letter-spacing: 0.08em;
}

header {
  background-color: rgba(255, 255, 255, 0.8);
  position: sticky;
  z-index: 999;
  top: 0;
  padding: 0.5rem 1rem;
  margin-bottom:0.5rem;
  -webkit-backdrop-filter: blur(0.5rem);
  backdrop-filter: blur(0.5rem);
  box-shadow: 0 0 0.5rem rgba(255, 200, 200, 0.9);
}
header svg {
  width: 10rem;
  display:block;
}

footer{
  text-align: center;
  padding:0.5rem;
  font-size: 0.8rem;
  color:#ccc;
}

nav {
  background-color: rgba(220, 220, 220, 0.75);
  border-radius: 1rem;
  z-index: 999;
  box-shadow: 0 0 0.6rem 0.05rem rgba(128, 128, 128, 0.5);
  position: fixed;
  display: flex;
}

nav svg {
  width: 1.25rem;
  height:1.25rem;
  display: block;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 32px;
  fill:none;
  stroke: currentColor;
}

nav a{
  color: #333;
}
nav a:hover{
  color: rgb(255, 0, 0);
}

.icon {
  font-size: 1.4em;
  padding: 0.4em;
  margin: 0.4em;
  transition: 0.9s ease-in-out;
  border-radius: 100%;
}

.active {
  transform: scale(1.2);
  background: linear-gradient(135deg, rgb(164, 0, 0), #ff6565);
  color: white;
}
main {
  padding-bottom: 1rem;
  position: relative;
}

.gallery {
  display: grid;
  grid-gap: 0.25rem;
  grid-auto-rows: auto;
  grid-auto-flow: dense;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.6rem;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.gallery img.loaded {
  opacity: 1;
}

.gallery .tall {
  grid-row: span 2;
}

.gallery .wide {
  grid-column: span 2;
}

#contact, #about {
 position: relative;
 margin:2rem auto;
 padding-inline: 1rem;
 align-items: center;
 max-width: 40rem;
}

#contact-bar {
  width: 100%;
  font-weight: 400;
  font-size: 2rem;
  position: relative;
  text-align: center;
  color: gray;
}

form {
  margin: 0;
  padding: 1rem;
  display: inline-block;
}
form input,
form textarea {
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  width: 100%;
  color: #666;
  border: 0.125rem solid #ddd;
  border-radius: 0.25rem;
}
form input:last-of-type,
form textarea:last-of-type {
  margin-bottom: 0;
}
form input[type="submit"] {
  text-transform: uppercase;
  background: #fefefe;
  width: 50%;
  color: black;
  margin: 0.5rem auto;
  border-color: black;
}
form input[type="submit"]:hover {
  background: #ff0000;
  -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
form textarea[type="textarea"] {
  min-height: 5rem;
  vertical-align: text-top;
}

#contact-info {
  display: inline-block;
}
p.other {
  margin-bottom: 3px;
  text-transform: lowercase;
  font-weight: 300;
}
p.other,
p.other a {
  color: #000;
}

#map {
  display:block;
  padding: 2rem;
}

@media screen and (orientation: landscape) {
  nav {
    top: 0.15rem;
    right: 1rem;
    background: none;
    box-shadow: none;
  }

  .gallery {
    grid-template-columns: auto auto auto auto;
    padding-inline: 1rem;
  }
}

@media screen and (orientation: landscape) and (max-width: 1024px) {
  nav {
    top:0.1rem;
  }
  .gallery {
    grid-template-columns: auto auto auto;
  }
}

@media screen and (orientation: landscape) and (max-height: 430px) {
  nav {
    top:0rem;
  }
  header svg {
    width: 8rem;
  }
  .icon {
    font-size: 1.2rem;
  }
  .gallery {
    padding-inline: 0.25rem;
  }
}

@media screen and (orientation: portrait) {
  nav {
    left: 50%;
    translate: -50%;
    bottom: 2rem;
  }

  .gallery{
    grid-template-columns: auto auto auto;
    padding-inline: 0.25rem;
  }
}
/* all-phones */
@media screen and (orientation: portrait) and (max-width: 430px) {
  header svg {
    width: 9rem;
  }

  .gallery{
    grid-template-columns: auto auto;
  }

  form {
    width:100%;
  }
}
/* tiny-phoes */
@media screen and (orientation: portrait) and (max-width: 320px) {
  header svg {
    width: 8rem;
  }
  .icon {
    font-size: 1.2rem;
  }
  .gallery{
    grid-template-columns: auto;
  }
}
