﻿/*사업분야 공통사항*/

* {
    box-sizing: border-box;
}

#bsmenu {
    display: flex;
    flex-wrap: wrap;
    background-color: #00182E;
    padding: .8vw 11vw;
}

    #bsmenu > a {
        color: #fff;
        flex: 1;
        padding: 20px 5px;
        min-width: 250px;
        text-align: center;
        align-content: center;
        font-size: calc(0.25vw + 13px);
        display: block;
    }

        #bsmenu > a.active, #bsmenu > a:hover {
            color: #00182E;
            background-color: #fff;
            font-weight: bold;
            display: block;
        }

.bsbgimg {
    background-image: url(projectbg01.jpg);
}

.bstext {
    text-align: center;
    color: #00498c;
}

/* New Image Gallery Styles */
.gallery-container {
    max-width: 1024px;
    margin: auto;
    padding: 0 15px;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #f0f0f0;
    margin-bottom: 15px;
    overflow: hidden;
}

#mainGalleryImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 이미지가 잘리지 않도록 contain으로 설정 */
    transition: opacity 0.3s ease-in-out;
}

.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: background-color 0.3s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
}

.prev-btn {
    left: 10px;
    border-radius: 5px 0 0 5px;
}

.next-btn {
    right: 10px;
    border-radius: 0 5px 5px 0;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.thumbnail-scroller {
    width: 100%;
    overflow-x: auto;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.thumbnail-scroller::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.thumbnail-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding-bottom: 5px;
}

.thumbnail {
    flex: 0 0 120px;
    width: 120px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
    border-radius: 4px;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    opacity: 1;
    border-color: #007bff;
}

/*여기서부터 반응형*/
@media all and (max-width: 768px) {
    #bsmenu {
        padding: .8vw 8vw;
    }

    .bsmnitem {
        min-width: 35vw;
        font-size: calc(0.3vw + 12px);
    }
}
