.photos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.page-subtitle {
    font-size: 1rem;
    color: #718096;
    margin: 0 0 1.25rem 0;
}

.copyright-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

.notice-icon {
    font-weight: 700;
    font-size: 0.9rem;
    color: #a0aec0;
}

.copyright-notice p {
    font-size: 0.8rem;
    color: #718096;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

/* タブ切り替え */
.view-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tab-btn {
    background: none;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* モデルカード */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.model-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.model-cover-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: #edf2f7;
    overflow: hidden;
}

.model-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.model-card:hover .model-cover-img {
    transform: scale(1.05);
}

.model-card-overlay {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
}

.model-photo-count {
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.model-info {
    padding: 1.25rem;
}

.model-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.25rem 0;
}

.model-x-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.model-x-link:hover {
    text-decoration: underline;
}

.model-desc {
    font-size: 0.875rem;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* 特定モデルギャラリーヘッダー */
.model-detail-header {
    margin-bottom: 2rem;
}

.btn-back {
    background: none;
    border: none;
    color: #0066cc;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1rem;
}

.btn-back:hover {
    text-decoration: underline;
}

.model-profile-banner {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

/* ギャラリー＆カード */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.photo-card {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 8px;
    background-color: #edf2f7;
    cursor: pointer;
}

.photo-thumb,
#modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.photo-card:hover .photo-thumb {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-date {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#modal-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
}

.modal-caption {
    color: #ffffff;
    text-align: center;
    margin-top: 1rem;
}

#modal-title {
    font-size: 1.25rem;
    margin: 0 0 0.35rem 0;
}

.modal-meta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.modal-meta {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 0;
}

.modal-location {
    font-size: 0.85rem;
    color: #38bdf8;
    margin: 0;
    font-weight: 500;
}

.modal-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
}