.section-intro {
    max-width: 680px;
}

.portfolio-story-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(31, 23, 19, 0.08);
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(31, 23, 19, 0.09);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portfolio-story-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 44px rgba(31, 23, 19, 0.15);
}

.portfolio-story-image {
    position: relative;
    display: block;
    overflow: hidden;
}

.portfolio-story-image img {
    width: 100%;
    height: 285px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-story-card:hover .portfolio-story-image img {
    transform: scale(1.045);
}

.portfolio-category {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 7px 12px;
    color: #fff;
    background: rgba(23, 17, 14, 0.82);
    border-radius: 30px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.portfolio-story-body {
    padding: 24px;
}

.portfolio-story-body h3 {
    margin-bottom: 7px;
}

.portfolio-client {
    color: var(--brand, #a96d45);
    font-weight: 600;
}

.portfolio-story-body p:not(.portfolio-client) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.portfolio-read-more {
    color: var(--brand, #a96d45);
    font-weight: 700;
    text-decoration: none;
}

.portfolio-read-more i {
    transition: transform 0.25s ease;
}

.portfolio-read-more:hover i {
    transform: translateX(5px);
}

.portfolio-list-hero,
.portfolio-detail-hero {
    position: relative;
    padding: 180px 0 105px;
    color: #fff;
    background: linear-gradient(135deg, #241a16, #634735);
}

.portfolio-list-hero .lead {
    max-width: 720px;
}

.portfolio-detail-hero {
    min-height: 590px;
    display: flex;
    align-items: flex-end;
    background-image: linear-gradient(90deg, rgba(15, 10, 8, 0.84), rgba(15, 10, 8, 0.18)), var(--portfolio-hero);
    background-position: center;
    background-size: cover;
}

.client-testimonial {
    margin: 24px 0 0;
    color: #4b403a;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.65;
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: #17110e;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 10px 28px rgba(31, 23, 19, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.gallery-item span {
    position: absolute;
    left: 50%;
    top: 50%;
    color: #fff;
    opacity: 0;
    transform: translate(-50%, -35%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.55;
    transform: scale(1.045);
}

.gallery-item:hover span {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.portfolio-lightbox .modal-content,
.portfolio-lightbox .modal-body {
    background: rgba(5, 5, 5, 0.97);
}

.portfolio-lightbox .modal-body {
    display: flex;
    align-items: center;
    padding: 52px 70px;
}

.portfolio-lightbox .btn-close {
    position: absolute;
    z-index: 5;
    top: 22px;
    right: 24px;
}

.portfolio-lightbox .carousel,
.portfolio-lightbox .carousel-inner {
    width: 100%;
}

.portfolio-lightbox .carousel-item img {
    width: 100%;
    height: calc(100vh - 104px);
    object-fit: contain;
}

.lightbox-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    padding: 5px 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 30px;
    transform: translateX(-50%);
}

@media (max-width: 767.98px) {
    .portfolio-story-image img,
    .gallery-item img {
        height: 260px;
    }

    .portfolio-detail-hero {
        min-height: 480px;
    }

    .portfolio-lightbox .modal-body {
        padding: 44px 12px 20px;
    }
}
