﻿.box-bg-top {
    min-height: 200px;
    position: relative;
    text-align: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.container>.box-bg-top>.container {
    width: 100%;
}

.box-bg-top .container .container {
    width: 100%;
    padding: 0;
}

.box-bg-top .box-bg-title {
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    height: 130%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
}

.box-bg-top .box-bg-title:after {
    content: '';
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    height: 130%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
}

.box-bg-top .box-bg-title .title {
    position: relative;
    top: 30%;
    transform: translateY(-30%);
    z-index: 1;
}

.box-bg-top .box-bg-title .title h1.header {
    text-align: left;
    font-size: 40px;
    color: #fff;
    padding-bottom: 15px;
}

.box-bg-top .breadcrumb-box {
    background-color: transparent;
    text-align: left;
}

.box-bg-top .breadcrumb-box .btn-breadcrumb a.btn.btn-default {
    color: #fff;
}

.box-bg-top .breadcrumb-box .btn-breadcrumb span {
    font-size: 12px;
}

.box-bg-top.post_detail .title h1.header {
    text-align: left;
    font-size: 20px;
    color: #fff;
    padding-bottom: 15px;
}

.wrapper {
    padding-top: 0;
}

.box-bg-top.box-bg-center .title h1.header {
    text-align: center;
}

.box-bg-top.box-bg-center .breadcrumb-box {
    text-align: center;
}

body .wrapper .wrapper-container {
    margin-top: 35px;
}

.photo-gallery-category {
    overflow: hidden;
}

.photo-gallery-category .item {
    margin-bottom: var(--bs-gutter-x);
    overflow: hidden;
    position: relative
}

.photo-gallery-category .item .img {
    overflow: hidden;
}

.photo-gallery-category .item .img img {
    -webkit-transform: scale(1.03);
    -ms-transform: scale(1.03);
    transform: scale(1.03);
    -webkit-transition: -webkit-transform .5s ease-out;
    transition: -webkit-transform .5s ease-out;
    -o-transition: transform .5s ease-out;
    transition: transform .5s ease-out;
    transition: transform .5s ease-out, -webkit-transform .5s ease-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-gallery-category .item .title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    opacity: 0;
    transition: 0.8s all;
}

.photo-gallery-category .item .title h3 {
    margin-top: 60%;
    font-size: 18px;
    line-height: 25px;
    letter-spacing: 5px;
    text-align: left;
    color: #fff;
    text-transform: uppercase;
    opacity: 0;
    margin-left: -10px;
    transition: 0.5s all;
}

.photo-gallery-category .item .title h3:after {
    content: "";
    display: table;
    margin: 10px 0;
    height: 1px;
    width: 0;
    background: #fff;
    transition: 0.8s all;
}

.photo-gallery-category .item:hover .title,
.photo-gallery-category .item.active .title {
    opacity: 1;
    transition: 0.3s all;
}

.photo-gallery-category .item:hover .title h3,
.photo-gallery-category .item.active .title h3 {
    opacity: 1;
    margin-left: 0px;
    transition: 0.5s all;
}

.photo-gallery-category .item:hover .title h3:after,
.photo-gallery-category .item.active .title h3:after {
    width: 100%;
    transition: 0.8s all;
}

.photo-gallery-category .item:hover img {
    -webkit-transform: scale(1.03) translateX(1%);
    -ms-transform: scale(1.03) translateX(1%);
    transform: scale(1.03) translateX(1%);
}

@media (max-width: 768px) {

    .photo-gallery-category .item .title {
        opacity: 1;
        transition: 0.3s all;
    }

    .photo-gallery-category .item .title h3 {
        opacity: 1;
        margin-left: 0px;
        transition: 0.5s all;
    }

    .photo-gallery-category .item .title h3:after {
        width: 100%;
        transition: 0.8s all;
    }
}

/* ============================================
   Project Detail - amadesign.vn Style
   ============================================ */

.project-detail {
    background: #fff;
}

/* Breadcrumb */
.project-breadcrumb {
    padding: 20px 0 0;
}

.project-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
    letter-spacing: 1px;
}

.project-breadcrumb .breadcrumb-item a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.project-breadcrumb .breadcrumb-item a:hover {
    color: #333;
}

.project-breadcrumb .breadcrumb-item.active {
    color: #666;
}

.project-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: #ccc;
}

/* Project Header */
.project-detail-header {
    text-align: center;
    padding: 50px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.project-title {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #222;
    margin-bottom: 30px;
    line-height: 1.3;
}

/* Project Meta */
.project-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.project-meta-item {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.meta-label {
    font-style: italic;
    color: #888;
    margin-right: 5px;
}

.meta-value {
    color: #333;
    font-weight: 500;
}

/* Masonry Gallery */
.project-gallery-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.project-masonry-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.masonry-item {
    overflow: hidden;
    border-radius: 2px;
    position: relative;
}

.masonry-item a {
    display: block;
    position: relative;
    cursor: zoom-in;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.masonry-item:hover img {
    transform: scale(1.02);
    opacity: 0.92;
}

/* Content Section */
.project-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.project-content img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 992px) {
    .project-title {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .project-meta {
        flex-direction: column;
        gap: 6px;
    }

    .project-gallery-wrapper {
        padding: 30px 15px 40px;
    }
}

@media (max-width: 576px) {
    .project-masonry-gallery {
        grid-template-columns: 1fr;
    }

    .project-title {
        font-size: 22px;
        letter-spacing: 3px;
    }

    .project-detail-header {
        padding: 30px 15px 25px;
    }

    .project-gallery-wrapper {
        padding: 20px 10px 30px;
    }
}