html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 25px;
  background: #f6efe8;
  font-family: Verdana, sans-serif;
  color: #3a3330;
  background: url("images/background3.gif");
}
.top-cloud-wrap {
  width: 100%;
  text-align: center;
}

.top-cloud {
  display: block;
  margin: 0 auto;
  border: 1px solid red;
}
.footer {
  margin-top: 30px;
  padding-top: 10px;
  font-size: 11px;
  text-align: center;
  color: #7a6f6a;
  border-top: 1px solid #e0d6cf;
}

/* OUTER FRAME */
.portfolio-main {
  max-width: 720px;

  margin: -30px auto;

  padding: 20px;

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.96),
      rgba(255,245,248,0.92)
    );

  border-top: 6px solid #fff8b869;
  border-left: 6px solid #dae88d66;
  border-right: 6px solid #f0e1e55e;
  border-bottom: 6px solid #c8b8bc50;

  border-radius: 18px;

  box-shadow:
    0 0 0 2px rgba(255,255,255,0.5),
    8px 8px 0 rgba(190,150,160,0.45);

  position: relative;
}

/* HEADER */
.portfolio-header {
  text-align: center;

  background:
    linear-gradient(
      to bottom,
      #dff6ff,
      #b6e1f2
    );

  border-top: 4px solid #ffffffdf;
  border-left: 4px solid #d7ffff35;
  border-right: 4px solid #cde0eb44;
  border-bottom: 4px solid #94a8b4a4;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow:
    4px 4px 0 rgba(170,190,200,0.5);
}

.portfolio-header h1 {
  margin: 0;
  font-size: 28px;
  color: fff;
  letter-spacing: 2px;
}

.portfolio-header p {
  margin: 8px 0 0;
  color: #999;
  font-size: 12px;
  font-weight: bold;
}

/* NAV MENU */
.nav-menu {
  text-align: center;
  margin-bottom: 20px;
}

.nav-menu a {
  display: inline-block;
  margin: 0 8px;
  padding: 6px 12px;
  background: #b6e1f2;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  border: 0px solid #3aafdc;
  border-radius: 6px;
  box-shadow: 2px 2px 0 #e0d2b8;
}

.nav-menu a {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.nav-menu a:hover {
  animation: floatLink 1.2s ease-in-out infinite alternate;

  background: #feffff;
  color: #84c7f0bc;
  box-shadow: 2px 2px 0 #84c7f0bc;
}

@keyframes floatLink {
  from {
    transform: translateY(0px) rotate(-1deg);
  }

  to {
    transform: translateY(-6px) rotate(1deg);
  }
}

.nav-bar {
  text-align: center;
  margin-bottom: 20px;
}

.nav-btn {
  display: inline-block;
  margin: 0 6px;
  padding: 6px 12px;
  background: #b6e1f2;
  color: #3a3330;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  border: 1px solid #3a3330;
  border-radius: 6px;
  box-shadow: 2px 2px 0 #e0d2b8;
  transition: all 0.3s ease;
}
.nav-btn:first-child {
  background: #b6e1f2;
  border: 0px solid #c97f60;
  box-shadow: 2px 2px 0 #e0d2b8;
}
  .back-btn:hover {
  background: #b7c5cc;   /* different color */
  color: #a59189;
}

/* SECTION TITLES */
.section-title {
  display: inline-block;
  background: transparent;
  color: #999;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 6px 12px;
  margin: 18px 0 12px;
  box-shadow: 2px 2px 0 #ccc;
  font-size: 14px;
}

/* MASONRY */
.masonry-grid {
  column-count: 3;
  column-gap: 30px;
}

.thumb {
  width: 100%;
  margin-bottom: 14px;
  cursor: pointer;
  display: block;
  border: 5px solid #fff;
  border-radius: 8px;
  background: white;
  box-shadow: 3px 3px 0 #c8dce5;
  transition: 0.2s ease;
}

.thumb:hover {
  border-color:
    #ffb3b369
    #b7cbff62
    #fff3a37e
    #b2ecff6e;
  animation: bouncey 0.4s;
}

@keyframes bouncey {
  0% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  60% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}
/* LIGHTBOX */
#siteLightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(40, 30, 30, 0.85);
  z-index: 999999;
  justify-content: center;
  align-items: center;
}

#siteLightbox img {
  max-width: 95vw;
  max-height: 88vh;
  border: 2px solid white;
  border-radius: 10px;
}

.lightbox-close-img {
  position: fixed;
  top: 15px;
  right: 20px;
  padding: 0px 0px;
  border: 0px;
  color: #fff;
  font-family: courier;
  font-size: 12px;
  text-shadow: 1px 1px 0 #000;
  z-index: 2147483648;
  cursor: pointer;
}
.lightbox-close-img img {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 83px; /* or whatever size */
  height: auto;
  display: block;
}

/* LOADING */
  #loadingScreen {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.4); /* dark overlay */
  backdrop-filter: blur(6px) grayscale(1);
  -webkit-backdrop-filter: blur(6px) grayscale(1); /* safari */

  z-index: 9999999;

  display: flex;
  justify-content: center;
  align-items: center;
}

.loadingImage {
  width: 181px;
  height: auto;
  border-radius: 10px;
}

.corner-sticker {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.sticker1 {
  top: -12px;
  left: -18px;
}

.sticker2 {
  top: -10px;
  right: -14px;
}

.floating-cloud {
  animation: cloudFloat 3.5s ease-in-out infinite alternate;

}

@keyframes cloudFloat {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-10px);
  }
}

/* MOBILE */
@media only screen and (max-width: 700px) {
  .masonry-grid {
    column-count: 3;
  }
}

@media only screen and (max-width: 430px) {
  .masonry-grid {
    column-count: 1;
  }
}