body {
  background: #333;
  margin: 1em;
}

::-webkit-scrollbar {
  width: 0;
}

h1 {
  text-align: center;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.7em;
  margin-top: 1.5em;
}

.menu {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu > div {
  margin: 1.5em;
}

.box {
  width: 50%;
  display: flex;
  justify-content: center;
}

input,
#btn_url {
  position: relative;
  display: inline-block;
  font-size: 16px;
  box-sizing: border-box;
  transition: 0.5s;
}

input[type='text'] {
  background: #fff;
  width: 60%;
  height: 50px;
  border: none;
  outline: none;
  padding: 0 25px;
  border-radius: 25px 0 0 25px;
}

#btn_url {
  position: relative;
  left: -5px;
  border-radius: 0 25px 25px 0;
  width: 30%;
  height: 50px;
  border: none;
  cursor: pointer;
  background: #ffc107;
  color: #fff;
}

#btn_url:hover {
  background: #ff5722;
}

#radio-group {
  display: inline-flex;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
  margin-bottom: 3em;
}

input[type='radio'] {
  display: none;
}

label {
  padding: 18px 34px;
  font-size: 14px;
  color: #fff;
  background: #009578;
  cursor: pointer;
  transition: background 0.1s;
}

label:hover {
  opacity: 0.65;
}

label:not(:last-of-type) {
  border-right: 1px solid #006b56;
}

input[type='radio']:checked + label {
  background: #006b56;
}

.go-top {
  position: fixed;
  bottom: 4rem;
  right: 4rem;
  width: 4rem;
  height: 4rem;
  z-index: -1;
}

.go-top-btn {
  width: 0;
  height: 0;
  background: #2071b2;
  border-radius: 50%;
  cursor: pointer;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.go-top-btn > span {
  position: absolute;
  font-size: 1.7rem;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  transition: 0.2s;
}

.show {
  z-index: 10;
}

.show .go-top-btn {
  animation: popup 0.3s ease-in-out;
  width: 4rem;
  height: 4rem;
  z-index: 11;
}

.show span {
  transform: translate(-50%, -50%) scale(1);
}
@keyframes popup {
  0% {
    width: 0;
    height: 0;
  }
  50% {
    width: 6rem;
    height: 6rem;
  }
  100% {
    width: 4rem;
    height: 4rem;
  }
}

/* --------------------------------------------- */

.gallery1 img {
  max-width: 100%;
  margin-bottom: 0.5em;
  display: block;
  outline: 2px solid #fff;
  outline-offset: -10px;
}

.gallery1 {
  columns: 5 320px;
  column-gap: 0.5em;
}

.gallery1 img:hover {
  cursor: pointer;
  opacity: 0.1;
}

/* --------------------------------------------- */

.gallery2 {
  display: grid;
  grid-gap: 1rem;
}

.gallery2.col-1 {
  grid-template-columns: repeat(1, 1fr);
}

.gallery2.col-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery2.col-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery2.col-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery2 img {
  width: 100%;
  display: block;
  margin-bottom: 1rem;
}

/* --------------------------------------------- */

.gallery3 {
  position: relative;
  width: 100%;
  display: flex;
  gap: 15px;
}

.gallery3 img {
  width: 100%;
}

.gallery3 .column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery3 .post {
  position: relative;
  overflow: hidden;
}

.gallery3 img {
  width: 100%;
  filter: grayscale(50%);
}

.gallery3 .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #161616;

  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.5s;
}

.gallery3 .post:hover .overlay {
  opacity: 0.95;
  cursor: pointer;
}
