/*
Theme Name: Magic Memory
Theme URI: http://magicmemory.com/
Author: Amandeep Web Developer
Description: A custom WordPress theme converted from a static portfolio site.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: magic-memory
*/

/* Base styles will be enqueued via functions.php, but you can add custom theme overrides here. */
.meta .second.meta-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #eaeaea;
    margin-top: 5px;
}

.comments a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sqs-simple-like:hover {
    color: #888;
    transition: color 0.2s ease-in-out;
    cursor: pointer;
}

.sqs-simple-like .like-icon {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0icmVkIiBkPSJNMTIgMjEuMzVsLTEuNDUtMS4zMkM1LjQgMTUuMzYgMiAxMi4yOCAyIDguNSAyIDUuNDIgNC40MiAzIDcuNSAzYzEuNzQgMCAzLjQxLjgxIDQuNSAyLjA5QzEzLjA5IDMuODEgMTQuNzYgMyAxNi41IDMgMTkuNTggMyAyMiA1LjQyIDIyIDguNWMwIDMuNzgtMy40IDYuODYtOC41NSAxMS41NEwxMiAyMS4zNXoiLz48L3N2Zz4=') !important;
}

/* Mobile space overrides */
@media screen and (max-width: 768px) {
    html, body {
        width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    #canvas {
        padding-left: 5px !important;
        padding-right: 5px !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Custom Elementor Stories Widget Styles */
.magic-memory-stories-grid {
    display: grid;
    width: 100%;
}

.magic-memory-story-card {
    display: flex;
    flex-direction: column;
}

.magic-memory-story-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.magic-memory-story-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.magic-memory-story-img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.magic-memory-story-card:hover .magic-memory-story-img {
    transform: scale(1.03); /* Subtle premium micro-animation zoom */
}

.magic-memory-story-placeholder {
    width: 100%;
    height: 100%;
    background-color: #eaeaea;
}

.magic-memory-story-title-container {
    margin-top: 15px;
    width: 100%;
}

.magic-memory-story-title,
.entry-title {
    text-transform: none;
    letter-spacing: normal;
    margin: 0;
    line-height: 1.4;
}

.magic-memory-story-title a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.magic-memory-story-title a:hover {
    opacity: 0.7;
}

/* Elementor Gallery Archive Widget Styles */
.magic-memory-gallery-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.magic-memory-gallery-slider .swiper-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.magic-memory-gallery-slider .swiper-slide {
    flex-shrink: 0;
    height: auto;
    position: relative;
}

.magic-memory-gallery-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Premium Custom Arrows styles */
.magic-memory-gallery-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.magic-memory-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.magic-memory-arrow svg {
    width: 50%;
    height: 50%;
    display: block;
    transition: stroke 0.3s ease;
}

.magic-memory-arrow.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Default Margins for Story Archive Widget List Layout */
.magic-memory-stories-list .hentry {
    margin-bottom: 60px;
}

.magic-memory-stories-list .hentry header {
    margin-bottom: 25px;
}

.magic-memory-stories-list .hentry header .entry-title {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 5px;
}

.magic-memory-stories-list .hentry header .meta {
    margin-top: 5px;
}

.magic-memory-stories-list .hentry .magic-memory-story-image-wrapper {
    margin-bottom: 30px;
}

.magic-memory-stories-list .hentry .read-more {
    margin-top: 15px;
}

/* Default Margins for Gallery Archive Widget List Layout */
.magic-memory-gallery-archive-list .hentry {
    margin-bottom: 0px;
}

.magic-memory-gallery-archive-list .hentry header {
    margin-bottom: 25px;
}

.magic-memory-gallery-archive-list .hentry header .entry-title {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 5px;
}

.magic-memory-gallery-archive-list .hentry header .meta {
    margin-top: 5px;
}

.magic-memory-gallery-archive-list .hentry .magic-memory-gallery-excerpt {
    margin-bottom: 20px;
}

.magic-memory-gallery-archive-list .hentry .magic-memory-gallery-slider,
.magic-memory-gallery-archive-list .hentry .magic-memory-gallery-single-img {
    margin-bottom: 30px;
}

.magic-memory-gallery-archive-list .hentry .read-more {
    margin-top: 15px;
}

/* Single Story Gallery Grid Styling */
.magic-memory-single-story-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr); /* default 3 columns */
    gap: 30px; /* default 30px gap */
    width: 66%;
    margin-left: auto;
    margin-right: auto;
}

.magic-memory-single-story-gallery .image-wrapper {
    margin: 0 !important;
    width: 100% !important;
    display: block !important;
}

.magic-memory-single-story-gallery .image-wrapper img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
}

/* Responsive Paragraph Font Sizes */
p {
    font-size: 15px;
}

@media screen and (max-width: 1024px) {
    p {
        font-size: 14px;
    }
}

@media screen and (max-width: 767px) {
    p {
        font-size: 12px;
    }
}

