* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    display: flex;
    height: 100vh;
    background: #f7beec;
    font-family: "emmascript-mvb-std", sans-serif;
    font-weight: 200;
    font-style: normal;
}


.sidebar {
    width: 260px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

.logo {
    width: 110px;
    margin-bottom: 30px;
}

.sitetitle {
    position: absolute;
    top: 60px;
    left: 520px;
    font-size: 40px;
    color: rgb(58, 13, 67);
}


nav {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

nav a {
    text-decoration: none;
    color: rgb(58, 13, 67);
    font-size: 25px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

nav a:hover {
    opacity: 0.5;
}

.bottomlinks {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    bottom: 400px;
}


.viewer {
    flex: 1;
    top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: translateX(-60px)
}


.viewer img {
    max-width: 80%;
    max-height: 75vh;
    object-fit: cover;
    transition: opacity 0.4s ease;
}


.arrow {
    font-family: "emmascript-mvb-std", sans-serif;
    position: absolute;
    background: none;
    border: none;
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.left {
    left: 40px;
}

.right {
    right: 40px;
}

.arrow:hover {
    opacity: 0.5;
}

.content {
    flex: 1;
    padding: 40px;
}

.gallery {
    column-count: 3;
    column-gap: 10px;
    padding: 20px;
    width: 100%;
}

.gallery img {
    width: 100%;
    margin-bottom: 10px;
    display: block;
}

.close {
    color: white;
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.mySlides {
    display: none;
    width: 100%;
    text-align: center;
}


.mySlides img {
    object-fit: contain;
    max-height: 85vh;
    max-width: 85vw;
    width: auto;
    height: auto;
    display: block;
    margin: auto;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    padding: 20px;
    text-decoration: none;
    z-index: 100000;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.caption {
    color: white;
    font-size: 25px;
    padding: 15px 0;
    text-align: center;
    width: 100%;
    margin-top: 10px;
    font-family: "emmascript-mvb-std", sans-serif;
}

.masonry {
    column-count: 3;
    column-gap: 10px;
}

.masonry2 {
    column-count: 1;
    column-gap: 10px;
}

.masonry img {
    width: 100%;
    margin-bottom: 10px;
}

.center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 25px;
    margin-bottom: 15px;
}

.socialicon {
    width: 30px;
    height: auto;
    cursor: pointer;
}

.a {
    color: inherit;
    text-decoration: none;
}


@media (max-width: 900px) {

  .sidebar {
    position: relative;       
    width: 100%;
    height: auto;
    flex-direction: row;      
    justify-content: space-between;
    padding: 10px 20px;
  }

  .sidebar nav {
    flex-direction: row;
    gap: 15px;
    margin-top: 0;
  }

  .sidebar .bottomlinks {
    flex-direction: row;
    gap: 15px;
    margin-top: 0;
  }

  .sitetitle, .viewer {
    margin-left: 0;           
  }

}

/* Phones */
@media (max-width: 600px) {

  .sidebar {
    flex-direction: column;   /* stack logo + nav vertically */
    align-items: center;
  }

  .sidebar nav, .sidebar .bottomlinks {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .sitetitle {
    text-align: center;
    margin: 10px 0;
  }

  .viewer {
    margin: 0;
    padding: 10px;
  }

  .arrow {
    padding: 10px;
    font-size: 1.5rem;
  }
}