/*------------------------------------------------------
· apmedia Landing Page Ver 1.0
· Type : portfolio module style
· Author : Albatrosss Pictures Kim Hyun Gyu
· Data : 2026-03-06
· Copyright @ 2026 apmedia all rights reserved
---------------------------------------------------------*/

@charset "utf-8";

.apmedia-landing-portfolio-category {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(12rem, 18vw, 22rem), 1fr));
    gap: clamp(0.25rem, 0.3646vw, 0.4375rem);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    pointer-events: none;
}

.apmedia-landing-portfolio-category.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.apmedia-landing-portfolio-item {
    overflow: hidden;
}

.apmedia-landing-portfolio-link {
    display: block;
    position: relative;
}

.apmedia-landing-portfolio-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.apmedia-landing-portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 3s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.is-desktop .apmedia-landing-portfolio-link:hover .apmedia-landing-portfolio-thumb img {
    transform: scale(1.05);
}

.apmedia-landing-portfolio-cate {
    position: absolute;
    top: clamp(0.625rem, 0.7813vw, 0.9375rem);
    left: clamp(0.625rem, 0.7813vw, 0.9375rem);
    z-index: 2;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
    padding: clamp(0.3125rem, 0.3646vw, 0.4375rem) clamp(0.75rem, 0.7813vw, 0.9375rem);
    background: rgba(255, 255, 255, 0.08);
    border-radius: clamp(0.25rem, 0.3125vw, 0.375rem);
    pointer-events: none;
    transition: background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.is-desktop .apmedia-landing-portfolio-link:hover .apmedia-landing-portfolio-cate {
    background: var(--signature-color);
    color: #fff;
}

.apmedia-landing-portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.is-desktop .apmedia-landing-portfolio-link:hover .apmedia-landing-portfolio-overlay {
    opacity: 1;
}

/* 모바일: 오버레이 항상 표시 (배경 밝게) */
.is-mobile .apmedia-landing-portfolio-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.55);
}

.is-mobile .apmedia-landing-portfolio-title {
    transform: translateY(0);
}

.apmedia-landing-portfolio-play {
    width: clamp(2.5rem, 3.125vw, 3.75rem);
    height: clamp(2.5rem, 3.125vw, 3.75rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    margin-bottom: clamp(0.5rem, 0.5208vw, 0.625rem);
}

.apmedia-landing-portfolio-title {
    font-size: clamp(1rem, 1.0417vw, 1.25rem);
    font-weight: 600;
    color: #fff;
    padding: 0 clamp(0.75rem, 1.0417vw, 1.25rem);
    text-align: center;
    word-break: keep-all;
    transform: translateY(0.625rem);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.is-desktop .apmedia-landing-portfolio-link:hover .apmedia-landing-portfolio-title {
    transform: translateY(0);
}

.apmedia-landing-portfolio-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: clamp(5rem, 7.8125vw, 9.375rem) 0;
    color: rgba(255, 255, 255, 0.2);
    font-size: clamp(0.875rem, 0.8333vw, 1rem);
}

