.cgw-wrap {
    width: 100%;
}

.cgw-row {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cgw-row--reverse {
    flex-direction: row-reverse;
}

.cgw-item {
    box-sizing: border-box;
    padding: 10px;
    flex-shrink: 0;
}

.cgw-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cgw-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.cgw-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.cgw-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e8e8e8;
}

.cgw-card:hover .cgw-image-wrap img {
    transform: scale(1.04);
}

.cgw-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.cgw-overlay--no-file {
    cursor: default;
}

.cgw-card:hover .cgw-overlay {
    opacity: 1;
}

.cgw-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    padding: 12px;
    line-height: 1.4;
}

.cgw-info {
    padding: 12px 0 8px;
    text-align: center;
}

.cgw-title {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.4;
    color: #1a1a1a;
    font-weight: 500;
    word-break: break-word;
}

.cgw-divider {
    width: 100%;
    height: 1px;
    background-color: #1a1a1a;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .cgw-item {
        width: 50% !important;
    }
}

@media (max-width: 480px) {
    .cgw-item {
        width: 100% !important;
    }
}
