

#header {
  display: flex;
  margin: auto;
  width: 98%;
  padding: 0;
}
#header img {
  width: 100%;
}
/* this is for the nav bar */

.navlist {
    width: 100%;
    max-width: 1300px;
    margin: 15px auto;
}

.navlist ul {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.navlist li {
    flex: 1;
    text-align: center;
}

.navlist li a {
    display: block;
    padding: 15px 0;
    font-size: 25px;
    text-decoration: none;
    color: white;
    font-family: "Roboto Mono", monospace;
}
.nav_container {
  margin: auto;
  padding-top: 0%;
  background-color:black;
  opacity: 0.8;
  width: 98%;

}


.flex-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.flex-container div {
  display: flex;
  margin: 15px;
}

.nav_link.active{
  color: red;
}
a:link {
  color: white;
  text-decoration: none;
}
a:visited {
  color: white;
}
.navlist li a:hover {
    color: red;
    text-decoration: none;
}

a:active {
  color: firebrick;
  background-color: black;
}
/* this is for the nav bar */

body {
  background-image: url("back.png");
  background-position: center top;
  background-size: contain;
    font-family: "Roboto Mono", monospace;
    overflow-x: hidden;

}

.shopify-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    width: 100%;
}

.wrapper {
  padding: 30px 50px 10px 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* IMPORTANT (fixes vertical spacing issue) */
    justify-content: center;
    gap: 5rem;
}
.wrapper > div {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.wrapper img {
    max-width: 350px;
    width: 100%;
    height: auto;
    display: block;
}
.intro {
    flex: 1;
    max-width: 500px;
    background-color: white;
    align-self: flex-start;

    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.gallery {
  position: relative;
  max-width: 1200px;
  margin: 25px auto 40px auto;
  padding: 30px;
  background: white;
  border-radius: 10px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.gallery-display{
    display:flex;
    align-items:center;
    justify-content:center;

    width:100%;
    gap:30px;
}

.image-frame{

    width:1000px;
    height:650px;

    display:flex;
    justify-content:center;
    align-items:center;

}
.product-actions {
    margin-top: auto;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.shopify-button-container {
    min-height: 50px;
}

.home-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.home-btn img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.home-label {
    margin-top: 5px;
    font-family: "Roboto Mono", monospace;
    font-size: 14px;
    color: black;
    text-align: center;
}

.home-btn:hover .home-label {
    color: red;
}
.gallery-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gallery-buttons img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.gallery img {
  width: 100%;
  max-width: 1100px;   /* allows much larger display */
  height: 650px;       /* forces consistent size */
  object-fit: contain; /* keeps proportions clean */
  display: block;
}
.gallery-controls {
  position: absolute;
  top: 15px;
  right: 15px;

  display: flex;
  gap: 10px;
  align-items: center;
}
.gallery-buttons a:not(.home-btn):hover img {
    transform: scale(1.15);
    filter: brightness(0) saturate(100%) invert(25%) sepia(90%) saturate(2000%) hue-rotate(340deg);
}
.icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;

  width: 45px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; /* needed for HOME text */
}

.icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.fullscreen-hover {
    display: none !important;
}

.fullscreen-btn:hover .fullscreen-normal {
    display: none !important;
}

.fullscreen-btn:hover .fullscreen-hover {
    display: block !important;
}
#slide{

    width:100%;
    height:100%;

    object-fit:contain;

    display:block;
    cursor:pointer;

}
.gallery-tools{
    display:flex;
    gap:60px;
    margin-top:20px;
    align-self:flex-start;
}


.top-label{
    margin-top:4px;
    font-family:"Roboto Mono", monospace;
    font-size:12px;
    color:black;
}

.top-btn:hover .top-label{
    color:red;
}
#prev:hover img,
#next:hover img {
  filter: brightness(0) saturate(100%) invert(37%) sepia(93%) saturate(7482%) hue-rotate(2deg);
}

#prev:active img,
#next:active img {
  filter: brightness(0) saturate(100%) invert(37%) sepia(93%) saturate(7482%) hue-rotate(2deg);
}
#home:hover img,
#home:active img {
  filter: none;
  transform: none;
}
.home-label {
  font-size: 12px;
  margin-top: 4px;
  color: black;
  pointer-events: none;
}
#prev:hover img,
#next:hover img {
  transform: scale(1.1);
  transition: 0.2s ease;
  opacity: 0.8;
}
.gallery button {
  background: none;
  border: none;
  font-size: 36px;
  cursor: pointer;
  color: black;
  transition: 0.2s;
}

.gallery button:hover {
  color: red;
}

.gallery button:active {
  color: firebrick;
}
.profile img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile img:hover {
  transform: scale(1.02);
}

.gallery-bottom{
    margin-top:20px;
    display:flex;
    justify-content:flex-start;
}

.gallery-bottom button{
    background:none;
    border:none;
    cursor:pointer;
    padding:0;
}

.gallery-bottom img{
    width:45px;
}
.gallery-arrow{

    width:55px;
    height:55px;

    border:none;
    background:none;

    cursor:pointer;

    flex-shrink:0;

    padding:0;
}

.gallery-arrow img{

    width:100%;
    height:100%;
    object-fit:contain;

    transition:.2s;

}

.gallery-arrow:hover img{

    transform:scale(1.12);

    filter:brightness(0)
           saturate(100%)
           invert(23%)
           sepia(92%)
           saturate(2800%)
           hue-rotate(349deg);

}
/* LIGHTBOX */

.lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.95);

    display:none;

    justify-content:center;
    align-items:center;

    z-index:9999;
}

.lightbox.show{
    display:flex;
}

#lightboxImage{

    max-width:95vw;
    max-height:95vh;

    object-fit:contain;
}

#closeLightbox{

    position:absolute;
    top:20px;
    right:35px;

    color:white;
    font-size:55px;

    cursor:pointer;
}

.lightbox-arrow{

    position:absolute;
    top:50%;

    transform:translateY(-50%);

    background:none;
    border:none;

    cursor:pointer;
}

.lightbox-arrow img{
    width:60px;
}

.left{
    left:25px;
}

.right{
    right:25px;
}

/*FULLSCREEN BUTTON*/
.fullscreen-btn {
    background: none;
    border: none;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 0;
}

.fullscreen-btn img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.fullscreen-label {
    margin-top: 4px;
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    color: black;
    pointer-events: none;
}

.fullscreen-btn:hover .fullscreen-label {
    color: red;
}
.fullscreen-hover {
    display: none;
}

.fullscreen-btn:hover .fullscreen-normal {
    display: none;
}

.fullscreen-btn:hover .fullscreen-hover {
    display: block;
}
/*FULLSCREEN BUTTON*/



#lightbox{

    display:none;

    position:fixed;
    padding: 0;

    inset:0;

    background:rgba(0,0,0,.95);

    justify-content:center;

    align-items:center;

    z-index:9999;

}



#lightboxImage {
    max-width:auto;
    max-height:95vh;
    object-fit:contain;

    touch-action: pan-y;
    cursor:pointer;
}



#closeLightbox{

    position:absolute;

    top:20px;

    right:35px;

    color:white;

    font-size:50px;

    cursor:pointer;

}
/*FOR MOBILE*/
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .intro {
        max-width: 100%;
    }
}
@media (max-width: 768px) {
    .gallery img {
        height: 75vh;
        max-height: 600px;
    }
}
@media (max-width: 768px) {
    .gallery {
        padding: 10px;
        margin: 10px auto 20px auto;
    }
}
@media (max-width: 768px) {
    .image-frame {
        width: 100%;
        height: auto;
        min-height: 0;
    }
}
@media (max-width: 768px) {
    .gallery-display {
        gap: 0;
        padding: 0;
    }
}
@media (max-width: 768px) {
    .gallery-display {
        padding-top: 10px;
        padding-bottom: 10px;
        margin-top: 0;
        margin-bottom: 0;
    }
}
@media (max-width: 768px) {
    .gallery-display {
        min-height: auto;
        height: auto;
    }
}
@media (max-width: 600px) {
    .product-actions {
        flex-direction: column;
        gap: 15px;
    }
}
footer {
  position: relative;
  bottom: 0;
  left: 0;
  width: 90;
  color: white;
  background-color: black;
  padding: 8px;
  text-align: center;
  z-index: 1000;
  margin: auto;
  width: 90%;
}

@media (max-width: 768px) {

  

  .gallery-controls {
    position: static;   /* KEY: cancels absolute positioning */
    top: auto;
    right: auto;

    order: 2;           /* puts buttons under image */
    margin-top: 15px;

    justify-content: center;
    width: 100%;
  }

  .gallery img {
    order: 1;
  }
}
@media (max-width: 768px) {
    .gallery-arrow {
        display: none;
    }
}

@media (max-width: 768px) {

  .icon-btn {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;   /* prevents flex stretching */
  }

  .icon-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Make HOME match visually */
  #home {
    width: 40px;
    height: 40px;
  }

  .home-label {
    font-size: 10px;
    margin-top: 2px;
  }
}

@media (max-width: 600px) {

    .nav_container {
        width: 100%;
    }

    .navlist ul {
        flex-direction: column;
    }

    .navlist li {
        width: 100%;
    }

    .navlist li a {
        font-size: 16px;
        padding: 5px 0;
    }

}
@media (max-width: 768px) {

    .gallery {
        padding: 10px;
        margin: 10px auto 20px auto;
    }

    .gallery-display {
        gap: 0;
        padding: 0;
        min-height: 0;
    }

    .image-frame {
        width: 100%;
        height: auto;
    }

    .gallery img {
        height: 75vh;
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .gallery-tools {
        justify-content: center;
        align-self: center;
        width: 100%;
        gap: 60px;
        margin-bottom: 50px;
    }
}