/* Link Preview Card Styling */

.link-preview-card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-top: 0.75rem;
    overflow: hidden;
    max-width: 500px;
    transition: box-shadow 0.2s;
    display: block;
}

.link-preview-card:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    text-decoration: none;
}

.link-preview-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.link-preview-card a:hover {
    text-decoration: none;
}

.link-preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f8f9fa;
    display: block;
}

.link-preview-content {
    padding: 0.75rem;
}

.link-preview-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    color: #212529;
}

.link-preview-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-preview-url {
    font-size: 0.75rem;
    color: #6c757d;
    text-decoration: none;
}

/* Make links clickable in comment text */
.card-text a {
    color: #0d6efd;
    text-decoration: none;
}

.card-text a:hover {
    text-decoration: underline;
}

/* In Memory Of Banner */
.memorial-photo-wrapper {
    display: flex;
    flex-direction: column;
}

.memorial-banner {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: auto;
    transition: color 0.3s ease;
}

.memorial-banner-link {
    text-decoration: none;
    display: block;
}

.memorial-banner-link:hover .memorial-banner {
    color: #E87722;
}

.memorial-photo-wrapper img {
    display: block;
    margin: 0;
}

/* Gallery card memorial styling */
.memorial-photo-wrapper.gallery-card .memorial-banner {
    font-size: 0.75rem;
    padding: 8px 0;
    letter-spacing: 1px;
}

/* Deceased Student Section */
.deceased-section {
    border-left: 5px solid #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.deceased-section .card-header {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #000;
    padding: 1rem;
}

.deceased-section .card-header h5 {
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.deceased-section .card-body {
    padding: 1.5rem;
}

/* Student Profile Card Buttons */
.student-profile-card .d-grid {
    gap: 0.5rem;
}

.student-profile-card .btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.student-profile-card .card-body {
    padding: 1.5rem;
}

/* Action Buttons Section */
.student-action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.student-action-buttons .btn-gallery {
    background-color: var(--school-black, #212529);
    color: white;
    border: none;
    border-radius: 0.375rem;
}

.student-action-buttons .btn-gallery:hover {
    background-color: #1a1a1a;
    color: white;
}

.student-action-buttons .btn-invite {
    background-color: var(--school-orange, #E87722);
    color: white;
    border: none;
    border-radius: 0.375rem;
}

.student-action-buttons .btn-invite:hover {
    background-color: #d46a1a;
    color: white;
}

.student-action-buttons .btn-deceased {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 0.375rem;
}

.student-action-buttons .btn-deceased:hover {
    background-color: #5a6268;
    color: white;
}

/* Comment Form Background */
.comment-form-bg {
    background-color: #e9ecef !important;
}
