/* Living Memories Section */
/* View Memory Modal Styles */
.lm-view-modal-content {
    max-width: 800px;
    padding: 30px;
}

.lm-view-header {
    border-bottom: 2px solid #e5e5e5;

    margin-bottom: 25px;
}

.lm-view-name {
    font-size: 28px;
    font-weight: 700;
    color: #1a0b4d;
    margin-bottom: 10px;
}

.lm-view-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.lm-view-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lm-view-info-item svg {
    width: 18px;
    height: 18px;
    color: #5b21b6;
}

.lm-view-story {
    margin-bottom: 25px;
}

.lm-view-story h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.lm-view-story-text {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

.lm-view-images h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.lm-view-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.lm-view-image-item {
    position: relative;
    padding-bottom: 100%;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lm-view-image-item:hover {
    transform: scale(1.05);
}

.lm-view-image-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox for full image view */
.lm-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.lm-lightbox.active {
    display: flex;
}

.lm-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lm-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .lm-view-modal-content {
        padding: 20px;
    }
    
    .lm-view-name {
        font-size: 22px;
    }
    
    .lm-view-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .lm-view-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



.lm-container {
    max-width: 100%;
    margin: 0 auto;
}

.lm-title {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    font-family: Arial, sans-serif;
}

/* Gallery Container */
.lm-gallery {
    position: relative;
    display: flex;
    
    align-items: center;
    gap: 20px;
}
.lm-prev{
        position: absolute;
    left: 10px;
    z-index: 10;
}
.lm-next{
     position: absolute;
    right: 10px;
    z-index: 10;
}
.lm-cards-wrapper {
    flex: 1;
    overflow: hidden;
}

.lm-cards {
    display: flex;
    gap: 40px;
    transition: transform 0.4s ease;
}
.lm-card img{
    display: block;
}
/* Memory Card */
.lm-card {
    position: relative;
    min-width: calc(25% - 15px);
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.lm-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.lm-card-content {
    background: linear-gradient(180deg, rgba(153, 140, 140, 0) 0%, rgba(22, 7, 129, 0.5) 26%, #160781 100%);
    height: 62px;
    width: 100%;
    position: absolute;
    bottom: 0;
    padding: 15px;
}

.lm-card-hashtag {
font-family: "Raleway", Sans-serif;
font-style: normal;
font-weight: 600;
font-size: 16px;
line-height: 16px;

color: #FFFFFF;
margin-bottom: 3px;
text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.lm-card img{
    height: 270px !important;
    width: 100%;
    object-fit: cover;
}
.lm-card-uploader {
   color: #FFFFFF;
       font-family: "Raleway", Sans-serif;
font-weight: 600;
font-size: 12px;
line-height: 12px;
text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/* Navigation Buttons */
.lm-nav-btn {
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid black;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.lm-nav-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lm-nav-btn svg {
    color: #1a0b4d;
}

/* Share Button */
.lm-share-button {
    display: flex;
    align-items: center;
    gap: 17px;
    background-color: #160781;
    font-family: "Inter", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    fill: #C0B8FB;
    color: #C0B8FB;
    border-style: solid;
    border-width: 3px 3px 3px 3px;
    border-color: #C0B8FB;
    border-radius: 92px 92px 92px 92px;
    padding: 11px 14px 11px 22px;
}

.lm-share-button:hover{
    background-color: #160781;
}

/* Modal */
.lm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
#lmForm input, #lmForm label{
        font-family: "Inter", Sans-serif;
    font-weight: 400;
        color: #636363;
    font-size: 16px;
}
#lmForm input{
    border-radius: 50px !important;
    background: white !important;
    padding: 10px 15px;
}
.lm-modal.active {
    display: flex;
}
.mem-btn{
    width: full;
    margin-top: 30px;
    display: flex;
    justify-content: center;
}
.lm-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.lm-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    width: 32px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
    background: rgba(192, 184, 251, 0.42);
}
.lm-close:hover{
     background: rgba(192, 184, 251, 0.42);
}


.lm-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Styles */
.lm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.lm-form-group {
    display: flex;
    flex-direction: column;
}

.lm-form-group label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.lm-form-group input,
.lm-form-group textarea {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease;
}

.lm-form-group input:focus,
.lm-form-group textarea:focus {
    outline: none;
    border-color: #5b21b6;
}

.lm-form-group input::placeholder,
.lm-form-group textarea::placeholder {
    color: #999;
}

/* Upload Area */
.lm-upload-area {
    height: -webkit-fill-available;
    background: white;
    border: 3px dashed #C4C4C4;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.lm-upload-area.drag-over {
    border-color: #5b21b6;
    background: #f8f4ff;
}

.lm-upload-content svg {
    color: #666;
    margin-bottom: 12px;
}

.lm-upload-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.lm-browse-btn {
    background: #000;
    color: #ECF7F6;
        font-family: "Inter", Sans-serif;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}



/* Preview Area */
.lm-preview-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.lm-preview-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.lm-preview-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lm-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #e53e3e;
    z-index: 1;
}
.form-box{
    display: flex;
    gap: 20px;
}
/* Submit Button */
.lm-submit-btn {
   background: #160781;
    width: fit-content;
    color: #fff;
    border: none;
    font-family: "Inter", Sans-serif;
    border-radius: 50px;
    padding: 11px 12px 11px 24px !important;
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background 0.3s;
}

.lm-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 33, 182, 0.4);
}

.lm-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Message */
.lm-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.lm-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.lm-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .lm-card {
        min-width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
   .form-box{
       flex-direction: column;
   }
   .lm-upload-area{
       max-height: 230px;
   }
    .lm-modal-content{
        max-width: 400px;
    }
    .lm-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .lm-card {
        min-width: calc(50% - 10px);
    }
    
    .lm-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .lm-modal-content {
        padding: 30px 20px;
    }
    
    .lm-form-row {
        grid-template-columns: 1fr;
    }
    
    .lm-upload-area {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .lm-title {
        font-size: 28px;
    }
    
    .lm-card {
        min-width: 100%;
    }
    
    .lm-gallery {
        gap: 10px;
    }
    
    .lm-nav-btn {
        width: 36px;
        height: 36px;
    }
}