/* WIDGET WRAPPER */
.arch-presentation-widget {
    position: relative;
    width: 100%;
    font-family: Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}
.arch-presentation-widget * {
    box-sizing: border-box;
}

/* FULLSCREEN OVERRIDE */
.arch-presentation-widget.arch-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
}

.arch-fullscreen .arch-scroll-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HERO MEDIA */
.arch-hero-media {
    width: 100%;
    height: 60vh;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.arch-hero-media video,
.arch-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CONTENT SECTION */
.arch-content-section {
    width: 100%;
    padding: 60px 40px;
    background-color: #ffffff;
    flex: 1 0 auto;
}

.arch-content-inner {
    max-width: 900px;
    margin: 0 0 0 auto; /* Align to the right */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* GALLERY */
.arch-gallery {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    margin-top: -30px; /* Slight overlap or pull-up */
    flex-wrap: wrap;
    justify-content: flex-start;
}

.arch-gallery-item {
    width: 90px;
    height: 130px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.arch-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* GALLERY HOVER EFFECT */
.arch-gallery:hover .arch-gallery-item {
    opacity: 0.65;
}
.arch-gallery .arch-gallery-item:hover {
    opacity: 1;
    transform: scale(1.06);
    z-index: 2;
}

/* TEXT AREA */
.arch-text-area {
    max-width: 600px;
}

.arch-meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 10px;
}

.arch-title {
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 15px;
    color: #111;
    line-height: 1.2;
}

.arch-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 20px;
}

.arch-extra-meta {
    font-size: 12px;
    color: #888;
}

/* LIGHTBOX */
.arch-lb-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.arch-lb-overlay.arch-lb-active {
    opacity: 1;
    pointer-events: auto;
}

.arch-lb-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #111;
    cursor: pointer;
    line-height: 1;
}

.arch-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #111;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}
.arch-lb-prev { left: 20px; }
.arch-lb-next { right: 20px; }

.arch-lb-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
}

.arch-lb-img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.arch-lb-caption {
    margin-top: 20px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #555;
    text-align: center;
}

/* REUSED COC HEADER / FOOTER STYLES */
.coc-header.arch-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    padding: 26px 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arch-fullscreen .coc-header.arch-header {
    position: fixed;
}

.coc-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.coc-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: opacity 0.25s ease;
}
.coc-nav a:hover { opacity: 0.6; }

.coc-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coc-search input {
    width: 150px;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.8);
    background: transparent;
    color: #fff;
    outline: none;
    font-size: 13px;
}
.coc-search input::placeholder { color: rgba(255,255,255,0.75); }
.coc-search button {
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.coc-footer.arch-footer {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    padding: 60px 34px 34px;
    color: #fff;
    background-color: #111;
    flex-shrink: 0;
}

.coc-footer h4 {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.coc-footer p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    max-width: 360px;
    opacity: 0.75;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .arch-hero-media { height: 50vh; }
    .arch-gallery-item { width: 80px; height: 120px; }
}

@media (max-width: 768px) {
    .arch-hero-media { height: 40vh; }
    .arch-content-section { padding: 40px 20px; }
    .arch-gallery {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-top: 0;
    }
    .arch-gallery-item {
        flex: 0 0 80px;
    }
    .coc-header.arch-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .coc-footer.arch-footer {
        grid-template-columns: 1fr;
    }
}
