﻿/* CSS Document */
/*body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
}*/

.portfolio-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 10px;
}

.large-image-container {
    position: relative;
    height: 70vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}


    /*.large-image-container .large-image {
  position: absolute;
  top: 0;
  left: 0;
	  height: 600px;
  width: 100%;
	justify-content: flex-end;
  max-height: 70vh;
  object-fit:contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
	
}*/


    .large-image-container .large-image {
        position: absolute;
        height: 600px;
        width: auto; /* Maintain aspect ratio */
        max-height: 70vh;
        max-width: 100%;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }


.large-image.visible {
    opacity: 1;
    z-index: 2;
}

.thumbnails-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    display: flex;
    justify-content: flex-end; /* push inner thumbnails to right */
}

.thumbnails {
    display: inline-flex;
    gap: 10px;
}

.thumbnail {
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border 0.3s;
}

    .thumbnail:hover {
        border-color: #666;
    }

    .thumbnail.active {
        border-color: #007bff;
    }

/* Desktop Layout: side-by-side */
.next-wrapper {
    display: flex;
    flex-direction: row;
    height: 80%;
}

.content {
    width: 40%;
    padding: 2rem;
    box-sizing: border-box;
}

.portfolio-container {
    width: 60%;
    box-sizing: border-box;
    justify-content: flex-end;
}

.image-gallery {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 90%;
    max-width: 1400px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3; /* Keeps images proportional */
    overflow: hidden;
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.8;
        transition: opacity 0.3s ease;
        display: block;
    }

    .gallery-item:hover img {
        opacity: 1;
    }

.caption {
    position: absolute;
    bottom: 8px;
    right: 8px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    font-size: 0.9rem;
    border-radius: 4px;
}
.nav-buttons {
    position: absolute;
    bottom: 10px; /* spacing from bottom */
    left: 50%;
    transform: translateX(-50%);
    display: flex; /* enable flexbox */
    gap: 30px; /* spacing between up and down */
    justify-content: center;
    align-items: center;
}

.scroll-down, .scroll-up {
    position: static; /* reset absolute positioning on links */
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 12px 16px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 22px;
    transition: background 0.3s;
}

    .scroll-down:hover, .scroll-up:hover {
        background: rgba(0,0,0,0.9);
    }

section {
    scroll-margin-top: 120px; /* adjust to match your nav height */
}
.section-nav {
    position: fixed; /* stay at viewport bottom */
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 28px;
    z-index: 1000; /* above content but below nav */
}

    .section-nav a.scroll-btn {
        display: inline-flex;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: rgba(0,0,0,.6);
        color: #fff;
        font-size: 20px;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: background .25s;
    }

        .section-nav a.scroll-btn:hover {
            background: rgba(0,0,0,.9);
        }




.large-image {
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    right: 0; /* stick to right */
    top: 0;
    max-width: 100%;
    height: auto;
}

    .large-image.visible {
        opacity: 1;
    }

}

.thumbnail.active {
  outline: 2px solid blue;
}




/* Mobile Layout: stacked */
@media (max-width: 768px) {
    .next-wrapper {
        flex-direction: column;
    }

    .content,
    .portfolio-container {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* Stack images in one column */
        grid-auto-rows: auto; /* Let height adjust naturally */
        width: 100%;
    }

    .gallery-item {
        aspect-ratio: auto; /* Let images keep natural height */
    }
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        width: 100%;
        max-width: 768px;
    }
/*    .image-gallery{
        display:none;
    }*/

/*    .large-image-container {
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem;
    }

    .large-image {
        position: static;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }*/

}
