.sc-project-gallery {
    width: 100%;
    overflow: hidden;
}

.sc-pg-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    overflow: hidden;
}

/* Main Image */
.sc-pg-main {
    width: 50%;
    flex-shrink: 0;
}

.sc-pg-main-image-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.sc-pg-main-image {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    transition: background-image 0.5s ease;
}

.sc-pg-main-image-link:hover .sc-pg-main-image {
    opacity: 0.95;
}

/* Side Section with Thumbnails */
.sc-pg-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    overflow: hidden;
}

.sc-pg-thumbnails-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.sc-pg-thumbnails-track {
    display: flex;
    gap: 15px;
    transition: transform 0.4s ease;
    will-change: transform;
}

a.sc-pg-thumbnail,
div.sc-pg-thumbnail {
    flex-shrink: 0;
    height: 380px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.sc-pg-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.sc-pg-thumbnail:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

.sc-pg-thumbnail.active {
    box-shadow: 0 0 0 3px #333333;
}

/* Bottom Section */
.sc-pg-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation Buttons */
.sc-pg-navigation {
    display: flex;
    gap: 10px;
}

.sc-pg-nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    border-style: solid;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333333;
    padding: 0;
    line-height: 1;
}

.sc-pg-nav-btn i {
    line-height: 1;
}

.sc-pg-nav-btn:hover {
    background-color: #333333;
    color: #ffffff;
    border-color: #333333;
}

.sc-pg-nav-btn:hover svg,
.sc-pg-nav-btn:hover svg path {
    stroke: #ffffff;
}

.sc-pg-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sc-pg-nav-btn:disabled:hover {
    background-color: #ffffff;
    color: #333333;
    border-color: #e0e0e0;
}

.sc-pg-nav-btn:disabled:hover svg,
.sc-pg-nav-btn:disabled:hover svg path {
    stroke: #333333;
}

.sc-pg-nav-btn svg {
    width: 37px;
    height: 18px;
    transition: stroke 0.3s ease;
}

.sc-pg-nav-btn svg path {
    stroke: #333333;
    transition: stroke 0.3s ease;
}

.sc-pg-nav-btn .sc-pg-nav-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.sc-pg-nav-btn:hover .sc-pg-nav-icon-img {
    filter: brightness(0) invert(1);
}

/* Full Gallery Link */
.sc-pg-full-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sc-pg-full-gallery-link:hover {
    color: #0066cc;
}

.sc-pg-full-gallery-link svg {
    width: 36px;
    height: 36px;
    transition: all 0.3s ease;
}

.sc-pg-full-gallery-link:hover svg {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .sc-pg-wrapper {
        flex-direction: column;
    }

    .sc-pg-main {
        width: 100%;
    }

    .sc-pg-main-image {
        height: 350px;
    }

    .sc-pg-thumbnail {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .sc-pg-main-image {
        height: 280px;
    }

    .sc-pg-thumbnail {
        height: 200px;
    }

    .sc-pg-bottom {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .sc-pg-full-gallery-link {
        order: -1;
    }
}

@media (max-width: 480px) {
    .sc-pg-main-image {
        height: 220px;
    }

    .sc-pg-thumbnail {
        height: 160px;
    }

    .sc-pg-nav-btn {
        width: 40px;
        height: 40px;
    }
}
