:root {
  --clr-green-pal: #1b531c;
  --clr-white-pal: #fff;
  --clr-brown-pal: #594236;
  --clr-grey-pal: #5d576b;
  --clr-lavender: #d8d4f2;

  --ff-primary: "Roboto", sans-serif;
  --ff-accent: "Playfair Display", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--ff-accent);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.6;
}

body,
h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--ff-accent);
  font-weight: 900;
  line-height: 1;
}

img {
  max-width: 100%;
}

/*.top-strap {
  background-image: url(./DCWebsitePhotos/misc/pexels-black-leather-texture-cropped-b.jpg);
  background-position: 70% 50%;
  color: var(--clr-white-pal);
  padding: 0.5rem;
}
.top-container {
  display: flex;
  justify-content: space-between;
  height: 2rem;
}
@media screen and (max-width: 1200px) {
  .top-strap {
    display: none;
  }
}*/

header {
  background-image: url(pexels-black-leather-texture-cropped-b.jpg);
  background-position: 30% 50%;
  text-align: center;
  position: fixed;
  width: 100%;
  z-index: 999;
}
.logo-writ-div {
  padding-top: 6rem;
}
.logo {
  width: 60%;
  padding: 0.2em;
}
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  position: absolute;
  top: 0;
  left: 0;
  margin-left: 1em;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-toggle-label span {
  color: white;
  font-size: 1.5em;
  position: relative;
}
nav {
  position: absolute;
  text-align: left;
  top: 100%;
  left: 0;
  background-image: url(pexels-black-leather-texture-cropped-b.jpg);
  background-position: 30% 100%;
  width: 100%;
  transform: scale(1, 0);
  transform-origin: top;
  transition: transform 400ms ease-in-out;
}
nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
nav li {
  margin-bottom: 1em;
  margin-left: 1em;
}
nav a {
  color: red;
  text-decoration: none;
  font-size: 1em;
  text-transform: uppercase;
  opacity: 0;
  background: linear-gradient(
    to bottom,
    var(--clr-green-pal) 0%,
    var(--clr-green-pal) 100%
  );
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 4px 4px;
  color: #fff;
  text-decoration: none;
  transition: background-size 0.6s;
}
nav a:hover {
  background-size: 4px 50px;
}
.nav-toggle:checked ~ nav {
  transform: scale(1, 1);
}
.nav-toggle:checked ~ nav a {
  opacity: 1;
  transition: opacity 250ms ease-in-out 250ms;
}

@media screen and (min-width: 800px) {
  .nav-toggle-label {
    display: none;
  }
  header {
    display: grid;
    grid-template-columns: 0.3fr auto minmax(600px, 3fr) 0.3fr;
  }
  .logo {
    grid-column: 2/3;
  }
  nav {
    all: unset;
    grid-column: 3/4;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  nav ul {
    display: flex;
    justify-content: flex-end;
  }
  nav li {
    margin-left: 3em;
    margin-bottom: 0;
  }
  nav a {
    opacity: 1;
  }
}

@media screen and (max-width: 800px) {
  .logo {
    width: 20%;
  }
  nav a {
    background: none;
  }
}

.logo-writ {
  width: min(90%, 30.5rem); /* This means min-with 80%, max-width 40.5rem*/
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 0;
}

section {
  padding: 3rem;
  display: block;
}

@media (min-width: 40em) {
  section {
    padding: 2rem 0;
  }
}

.end {
  color: var(--clr-green-pal);
  text-align: center;
  font-size: 0.8em;
}

body {
  text-align: center;
}

.container {
  display: grid;
  grid-row-gap: 0;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 0.5rem;
}

@media screen and (max-width: 700px) {
  .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 700px) {
  .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
.gallery-item {
  width: 100%;
  height: 100%;
  position: relative;
}
.gallery-item .image {
  width: 100%;
  height: auto;
  overflow: hidden;
}
.gallery-item .image img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: 0.5s ease-in-out;
}
.gallery-item:hover .image img {
  transform: scale(1.2);
}
.gallery-item .text {
  position: absolute;
  padding: 0.15rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  border: solid white 2px;
  border-radius: 5px;
  background-color: hsla(0, 0%, 0%, 0.28);
  cursor: pointer;
}
