﻿.photo-frame {
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: 5px solid #f5f5dc;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    background-color: white;
    cursor: pointer;
    aspect-ratio: 2/1;
}

    .photo-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景色 */
}

    .overlay span {
        color: white; /* 文字颜色 */
        font-size: 2em; /* 文字大小 */
        font-weight: bold; /* 文字粗细 */
    }
