.ml-form-wrap{ 
   max-width:1200px;
   margin:40px auto;
   padding:20px;
}
.ml-hero {
   text-align: center;
   padding-bottom: 20px;
}

/* Golden Frame Upload */
.ml-upload-box{ 
  position:relative;
  display:inline-block; 
  width:300px; 
  height:300px; 
  border-radius:8px; 
  text-align:center; 
  cursor:pointer; 
  overflow:hidden;
  background:url('https://devcodespace.com/forgetmenot/wp-content/uploads/2025/09/golden-frame.png') no-repeat center center/cover;
}
.ml-upload-box input{ display:none; }

.ml-upload-inner-frame {
    color: #fff;
    font-weight: 600;
    background-color: #CCA155;
    width: 25px;
    position: absolute;
    top: 135px;
    padding: 0px 5px 5px 5px;
    left: 138px;
    border-radius: 6px;
}
#ml-user-photo {
    width: 46% !important;
    height: 58% !important;
    object-fit: cover;
    position: absolute;
    top: 60px;
    left: 82px;
    z-index: 1;
}

/* Fields */
.ml-hero-fields input, 
.ml-hero-fields textarea{ 
  width:100%; 
  display:block; 
  margin-bottom:10px; 
  padding:10px; 
}

.ml-hero-fields input[type="text"] {
    background: none;
    border: none;
    font-size: 45px;
    text-align: center;
}
.ml-dates input,
input#start_date, 
input#end_date {
    font-size: 20px !important;
}

.ml-dates {
   display: flex;
   gap: 10px;
   width: 58%;
   text-align: center;
   margin: 0 auto;
   padding-left: 70px;
}
.ml-field-with-icon {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  display: flex;
}

.ml-field-with-icon input,
.ml-field-with-icon textarea {
  width: 100%;
  padding: 10px 40px 10px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.ml-field-with-icon span.ml-title-icon {
    position: absolute;
    right: 31%;
    top: 45%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 45px;
    height: 45px;
}
.ml-field-with-icon textarea {
    background: no-repeat;
    border: none;
    font-size: 20px;
    text-align: center;
    height: 140px;
}
.ml-field-with-icon span.ml-shortd-icon {
    position: absolute;
    right: 7%;
    top: 38%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 45px;
    height: 45px;
}
.ml-dates input[type="date"] {
    background: none;
    border: none;
    text-align: center;
}
span.ml-date-icon {
    width: 45px;
    position: absolute;
    left: -5%;
}
span.ml-date-icon.single-date-icon {
    width: 45px;
    position: absolute;
    left: 24%;
}
.ml-field-with-icon input:focus,
.ml-field-with-icon textarea:focus {
  outline: none;
  box-shadow: none;
  border-color: #aaa;
}

.ml-field-with-icon .ml-icon img {
  width: 100%;
  height: auto;
  display: block;
}

/* Special case: textarea -> icon align top-right */
.ml-field-with-icon textarea + .ml-icon {
  top: 14px;
  transform: none;
}

/* Tabs */
.ml-tab-nav {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    justify-content: space-around;
}
.ml-tab-nav img { width: 40px; }
.ml-tab-text { 
    padding-top: 10px;
    color: #628AC6;
text-wrap: auto;
 }
.ml-tab-text:active {
    color: #CCA155 !important;
}
h3.ml-tab-title {
    margin-top: -5px;
    margin-bottom: 0;
    font-weight: 800;
    font-size: 28px !important;
   color: #628AC6 !important;
}
.ml-tab-btn {
    border: none !important;
    border-bottom: 4px solid #628AC6 !important;
    background: none;
    padding: 10px!important;
    border-radius: 10px !important;
}
.ml-tab-btn.active,
button.ml-tab-btn:hover {
    background: none !important;
}


/* Tab Content Styling */
.ml-tab-contents { min-height: 400px; }
.ml-tab-content {
    display: none;
    border-radius: 8px;
    margin-bottom: 20px;
}
.ml-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Blog Block Styling */
.ml-blog-block {
    background: #ffffff69;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}
.ml-blog-block input[type="text"],
.ml-blog-block textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 16px;
    background-color: #ffffff00;
}
.ml-blog-block textarea {
    min-height: 280px;
    line-height: 1.6;
    resize: vertical;
    font-size: 14px;
}
button.ml-submit {
    background-color: #628AC6;
    border: none;
    color: #fff;
}
button.ml-submit:hover {
    background-color: #CCA155;
    border: none;
    color: #fff;
}
.ml-blog-block input[type="text"]:focus,
.ml-blog-block textarea:focus {
  outline: none;
  box-shadow: none;
  border-color: #ddd;
}
#ml-add-blog {
    background: #E1B168;
    color: white;
    border: none;
    padding: 10px 17px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
#ml-add-blog:hover { background: #CCA155; }
.ml-blog-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* Uploads + Media Grid */
.ml-upload-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
    gap: 20px;
    justify-content: start;
    max-width: 1200px;
}
.ml-tab-content .ml-upload-box {
    width: 275px;
    height: 350px;
    background: #ffffff69;
    border: 2px dashed #CCA155;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    position: relative;
    flex-shrink: 0;
}
.ml-media-grid,
#ml-photos-preview,
#ml-videos-preview, 
#ml-stories-preview { display: contents; }

.ml-media-item {
    position: relative;
    width: 275px;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: white;
    flex-shrink: 0;
}
.ml-upload-inner {
    color: #fff;
    font-weight: 600;
    background-color: #CCA155;
    width: 75%;
    position: absolute;
    top: 160px;
    padding: 5px 5px 9px 5px;
    left: 30px;
    font-size: 16px;
    border-radius: 6px;
}
.ml-media-item img {
    height: 350px;
    object-fit: cover;
    width: 100%;
}

/* Video */
.ml-media-item.video {
    position: relative;
    width: 570px;
    height: 360px;
}
.ml-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ml-video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ml-upload-inner-video {
    color: #fff;
    font-weight: 600;
    background-color: #CCA155;
    width: 75%;
    position: absolute;
    padding: 5px 5px 9px 5px;
    font-size: 16px;
    border-radius: 6px;
}
/* Video tab upload box */
#tab-videos .ml-upload-box {
    width: 570px;
    height: 360px;
}
#tab-videos .ml-upload-container {
    grid-template-columns: repeat(2, 570px);
    gap: 20px;
    justify-content: start;
}
/* Other tabs */
#tab-photos .ml-upload-box,
#tab-stories .ml-upload-box {
    width: 275px;
    height: 350px;
}
#tab-photos .ml-upload-container,
#tab-stories .ml-upload-container {
    grid-template-columns: repeat(auto-fill, 275px) !important;
}

/* Hero Section */
.memory-hero {
    text-align: center;
    margin-bottom: 40px;
}

.memory-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 15px 0;
}
.memory-dates {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}
.memory-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* Tabs Navigation */
.memory-tab-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
}
.memory-tab-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    padding: 12px 20px;
    cursor: pointer;
    position: relative;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
}
.memory-tab-btn:hover { color: #000; }
.memory-tab-btn.active {
    color: #000;
    font-weight: 600;
}
.memory-tab-btn.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 3px;
    width: 100%;
    background: #d4af37;
    border-radius: 2px;
}

/* Tab Content */
.memory-tab-pane { display: none; }
.memory-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

/* Photos grid */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}
button.ml-media-remove {
    position: absolute;
    top: 0px;
    right: 0px;
    border-radius: 7px;
    background-color: #fff;
    border-color: #fff;
    color: #CCA155;
}
button.ml-media-remove:hover {
    background-color: #CCA155;
    border-color: #CCA155;
    color: #fff;

}
.photo-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.photo-item img:hover { transform: scale(1.05); }

/* Videos grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.video-item video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Blog entries */
.blog-entry {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
}
.blog-entry h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}
.blog-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/*single page css*/
.single-memory-lane {
   padding-top: 50px;
   padding-bottom: 50px;
   width: 1200px;
   margin: 0 auto;
}
.golden-frame {
    background-image: url('https://devcodespace.com/forgetmenot/wp-content/uploads/2025/09/golden-frame.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 50px;
    display: inline-block;
    height: 340px !important;
    width: 325px !important;
}
.golden-frame img {
    width: 147px;
    height: 200px;
    object-fit: cover;
    position: static !important;
    top: 303px;
    left: 877px;
    border-radius: 8px;
    z-index: 1;
    overflow: hidden !important;
    margin-top: 17px;
    margin-left: 3px;
}
.memory-hero h1 {
    font-size: 2.5em;
    color: #333;
    margin: 20px 0;
    font-weight: 300;
}
.memory-dates {
    font-size: 1.1em;
    margin-bottom: 15px;
}
.memory-description { font-size: 20px; }

/* Blog Content */
.blog-single-page {
    background: none;
    max-width: 100% !important;
}
.blog-entry h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4em;
}
.blog-content { line-height: 1.7; color: #555; }

/* Photos Grid - single */
.photos-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}
.photo-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    width: 290px;
}
.photo-item:hover { transform: translateY(-5px); }
.photo-item img {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
}

/* Videos Grid - single */
.videos-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}
.video-item { border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.video-item video { width: 100%; height: auto; }

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}
.story-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    
}
.story-item video { width: 100%; height: 100%; object-fit: cover; }

/* Photo Modal/Lightbox */
.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}
.photo-modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}
.photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    transition: background 0.3s ease;
}
.photo-modal-close:hover { background: rgba(255,255,255,0.2); }
.photo-modal-caption {
    color: white;
    margin-top: 15px;
    font-size: 16px;
}
.memory-tab-btn:hover {
    color: #000;
    background: none !important;
}
.memory-tab-btn:focus {
    color: #000;
    background: none;
}

.photos-grid, .videos-grid, .stories-grid {
    display: -webkit-grid;
    display: grid;
}

.photo-item:hover { 
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px); 
}

.golden-frame {
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
}
/* Memory Lane Popup CSS */

/* Popup Overlay */
.ml-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ml-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.ml-popup {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.ml-popup-overlay.active .ml-popup {
    transform: scale(1);
}

/* Popup Header */
.ml-popup-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ml-popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ml-popup-title img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.ml-popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ml-popup-close:hover {
    background: #f0f0f0;
    color: #666;
}

/* Popup Body */
.ml-popup-body {
    padding: 20px;
}

.ml-memory-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.ml-memory-type {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.ml-memory-type:hover {
    border-color: #CCA155;
    background: #fefdf8;
}

.ml-memory-type.selected {
    border-color: #CCA155;
    background: #fefdf8;
    box-shadow: 0 0 0 2px rgba(204, 161, 85, 0.2);
}

.ml-memory-type-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ml-memory-type-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.ml-memory-type.selected .ml-memory-type-icon {
    background: #CCA155;
}

.ml-memory-type.selected .ml-memory-type-icon img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.ml-memory-type-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.ml-memory-type-desc {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}


/* Responsive */
@media (max-width: 768px) {
    .memory-hero h1 { font-size: 2em; }
    .memory-tab-nav {

        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .memory-tab-nav::-webkit-scrollbar { display: none; }
    .memory-tab-btn {
        padding: 12px 20px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .photos-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
