body {
  margin: 0px;
  text-align: center;
}

.header {
  padding-top: 70px;
  display: flex;
  justify-content: space-between;
}

.logo {
  margin-top: 0px;
  margin-left: 70px;
  width: fit-content;
}

.menu {
  list-style: none;
  margin-top: 0px;
  margin-right: 70px;
  display: flex;
  align-items: center;
}

.menu li {
  display: inline-block;
  margin-left: 70px;
}

.menu li a {
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #6b7266;
}

.body-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 45px;
  font-weight: 600;
  letter-spacing: -2px;
  color: #6b7266;
  text-align: center;*/
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, auto-fill);
  gap: 0px;
  justify-content: center;
  grid-template-rows: masonry;
  margin: 0 auto;
}

.grid-item {
  width: 300px;
  margin-top: 0;
  margin-bottom: 15px;
  border-radius: 3px; /* NEW BORDER */
  cursor: zoom-in;
  background: lightgray;
}

.grid-item:hover {
  filter: opacity(60%);
}

.social-links a, 
.social-links span {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #6b7266;
  text-decoration: none;
  margin: 5px 50px 40px 0;
  padding-bottom: 30px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 99%;
  height: 99%;
  background-color: white;
  border: 0px solid #ccc;
  box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.21);
}

.modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close {
  position: absolute;
  top: 25px;
  right: 40px;
  cursor: pointer;
  font-size: 65px;
  font-weight: 300;
  color: lightgray;
}

.social-links {
  text-align: center;
  margin-top: 28px;
  margin-bottom: 28px;
}

/* 🔹 Prevent background scrolling when modal is open */
html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.go-back-tab {
  position: fixed;          
  top: 30%;                 
  left: 0;                  
  transform: translateY(-50%) rotate(180deg); /* center + flip text */

  background-color: #e0e0e0; 
  color: #333;
  font-family: 'Open Sans', sans-serif; /* ✅ consistency */
  font-size: 14px;
  font-weight: 600;
  writing-mode: vertical-rl; 
  text-orientation: mixed;
  padding: 10px 5px;
  cursor: pointer;
  border-radius: 9px 0px 0px 9px; 
  box-shadow: 2px 2px 5px rgba(0,0,0,0.15);
  z-index: 10000;           
  transition: background 0.2s ease;
}

.go-back-tab:hover {
  background-color: #ccc;
}

@media all and (max-width: 768px) {

  .header {
    padding-top: 20px;
    justify-content: center;
    text-align: left;
  }

  .left {
    align-self: center;
  }

  .menu {
    align-self: center;
    display: list-item;
  }

  .menu li {
    display: flex;
    flex-flow: column;
    margin-left: 0px;
  }

  .menu li a {
    font-size: 12px;
  }

  .body-text {
    font-size: 32px;
  }

  .grid-item {
    width: 100%;
    height: auto;
    border-radius: 0px;
  }

  .grid-item:hover {
    filter: opacity(100%);
  }

  .social-links a {
    line-height: 1.5;
    margin-left: 50px;
    margin-right: 50px;
  }

  .social-links {
    text-align: center;
  }
}