
/* ELISEY MEMORY COLLAGE */


/* COLLAGE */

.memory-collage {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: visible;

    box-shadow:
        0 25px 45px rgba(0, 0, 0, 0.22),
        0 12px 20px rgba(0, 0, 0, 0.16),
        0 4px 8px rgba(0, 0, 0, 0.10);
}

.memory-collage img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
}


/* INTERACTIVE HOTSPOTS */

.memory-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    z-index: 5;
    cursor: pointer;
}


/* SMALL VISIBLE GLOW */

.memory-hotspot::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(255, 255, 245, 1) 0%,
        rgba(255, 245, 190, 0.9) 22%,
        rgba(255, 225, 120, 0.45) 48%,
        rgba(212, 175, 55, 0) 78%
    );

    box-shadow:
        0 0 7px rgba(255, 255, 235, 0.95),
        0 0 15px rgba(255, 225, 120, 0.7),
        0 0 25px rgba(212, 175, 55, 0.4);

    animation: memoryPulse 2.6s ease-in-out infinite;

    pointer-events: none;
}


/* BRIGHT CENTER */

.memory-hotspot::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 0 4px rgba(255, 255, 255, 1),
        0 0 10px rgba(255, 245, 190, 1),
        0 0 16px rgba(255, 220, 100, 0.9);

    pointer-events: none;
}


/* HIDDEN NAME */

.memory-hotspot span {
    position: absolute;
    z-index: 3;

    top: 36px;
    left: 50%;
    transform: translateX(-50%);

    display: block;
    width: max-content;
    max-width: 240px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1.25;
    text-align: center;

    color: #ffffff;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 1),
        0 0 7px rgba(0, 0, 0, 1),
        0 0 15px rgba(0, 0, 0, 0.95),
        0 0 24px rgba(255, 225, 120, 0.9);

    opacity: 0;
    transition: opacity 0.3s ease;

    pointer-events: none;
}


/* SHOW NAME ON HOVER */

.memory-hotspot:hover span,
.memory-hotspot:focus span {
    opacity: 1;
}


/* STRONGER GLOW ON HOVER */

.memory-hotspot:hover::before,
.memory-hotspot:focus::before {
    width: 24px;
    height: 24px;

    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 245, 190, 0.95) 22%,
        rgba(255, 225, 120, 0.55) 48%,
        rgba(212, 175, 55, 0) 78%
    );

    box-shadow:
        0 0 9px rgba(255, 255, 255, 1),
        0 0 18px rgba(255, 235, 150, 1),
        0 0 32px rgba(212, 175, 55, 0.7);
}

.memory-hotspot:hover::after,
.memory-hotspot:focus::after {
    width: 7px;
    height: 7px;
}


/* HOTSPOT POSITIONS */

.memory-elisey {
    left: 20%;
    top: 27%;
}

.memory-sandi {
    left: 45%;
    top: 32%;
}

.memory-rikardo {
    left: 88%;
    top: 11%;
}

.memory-sapfira {
    left: 15%;
    top: 45%;
}

.memory-rafael {
    left: 42%;
    top: 48%;
}

.memory-diadem {
    left: 68%;
    top: 56%;
}

.memory-events-2010 {
    left: 52%;
    top: 88%;
}


/* PULSE ANIMATION */

@keyframes memoryPulse {

    0%,
    100% {
        opacity: 0.65;
        transform: scale(0.88);
    }

    50% {
        opacity: 1;
        transform: scale(1.12);
    }

}


/* MOBILE */

@media (max-width: 700px) {

    .memory-hotspot {
        width: 36px;
        height: 36px;
    }

    .memory-hotspot::before {
        width: 16px;
        height: 16px;
    }

    .memory-hotspot::after {
        width: 4px;
        height: 4px;
    }

    .memory-hotspot span {
        top: 31px;
        font-size: 11px;
        max-width: 170px;
    }

    .memory-hotspot:hover::before,
    .memory-hotspot:focus::before {
        width: 21px;
        height: 21px;
    }

    .memory-hotspot:hover::after,
    .memory-hotspot:focus::after {
        width: 6px;
        height: 6px;
    }

}


/* RETURN TO ESTATE */

.memory-collage {
    position: relative;
}

.history-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;

    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 14px;

    text-decoration: none;
}

.history-close-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: normal;
    line-height: 1;

    color: #454545;

    text-shadow:
        0 1px 2px rgba(255, 255, 255, 1),
        0 0 6px rgba(255, 255, 255, 1),
        0 0 12px rgba(175, 175, 175, 0.95),
        0 0 24px rgba(120, 120, 120, 0.65);

    transition:
        color 0.4s ease,
        text-shadow 0.4s ease,
        transform 0.4s ease;
}


/* SOFT FLOATING LABEL */

.history-close-label {
    position: relative;

    opacity: 0;

    padding: 7px 4px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-style: italic;
    letter-spacing: 0.3px;

    color: #4a4a4a;

    white-space: nowrap;

    pointer-events: none;

    transform: translateX(12px);

    text-shadow:
        0 1px 2px rgba(255, 255, 255, 1),
        0 0 7px rgba(255, 255, 255, 0.95),
        0 0 16px rgba(170, 170, 170, 0.75),
        0 0 28px rgba(130, 130, 130, 0.45);

    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}


/* SOFT ATMOSPHERIC GLOW BEHIND THE LABEL */

.history-close-label::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 125%;
    height: 170%;

    transform: translate(-50%, -50%);

    background: radial-gradient(
        ellipse,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(225, 225, 225, 0.55) 35%,
        rgba(180, 180, 180, 0.22) 60%,
        rgba(150, 150, 150, 0) 78%
    );

    filter: blur(8px);

    z-index: -1;
}


/* HOVER */

.history-close:hover .history-close-icon,
.history-close:focus .history-close-icon {
    color: #292929;

    transform: scale(1.12);

    text-shadow:
        0 1px 2px rgba(255, 255, 255, 1),
        0 0 8px rgba(255, 255, 255, 1),
        0 0 16px rgba(195, 195, 195, 1),
        0 0 30px rgba(120, 120, 120, 0.85);
}

.history-close:hover .history-close-label,
.history-close:focus .history-close-label {
    opacity: 1;
    transform: translateX(0);
}


/* MOBILE */

@media (max-width: 700px) {

    .history-close {
        top: 8px;
        right: 8px;

        gap: 8px;
    }

    .history-close-label {
        display: block;

        padding: 5px 3px;

        font-size: 11px;
        letter-spacing: 0;

        opacity: 1;

        transform: none;

        white-space: nowrap;
    }

}

.memory-hint {
    margin: 0 auto 18px;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.4;
    color: #5a5a5a;
}

/* Elisey history text below the collage */

.memory-history-text {
    max-width: 850px;
    margin: 45px auto 55px;
    padding: 32px 38px;
    box-sizing: border-box;
    background: #f6f3ee;
    border-top: 1px solid #d4af37;
    border-bottom: 1px solid #d4af37;
    text-align: center;
    color: #454239;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.8;
}

.memory-history-text h2 {
    margin: 0 0 25px;
    color: #9b792e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: normal;
    letter-spacing: 2px;
    line-height: 1.4;
}

.memory-history-text p {
    margin: 0 0 19px;
    font-size: 17px;
    line-height: 1.85;
}

.memory-history-text p:last-child {
    margin-bottom: 0;
}

.memory-history-text strong {
    display: inline-block;
    margin: 4px 2px;
    color: #9b792e;
    font-size: 1.12em;
    font-weight: bold;
    letter-spacing: 0.5px;
}


@media (max-width: 700px) {
    .memory-history-text {
        width: 100%;
        max-width: 100%;
        margin: 25px auto 32px;
        padding: 24px 16px;
        box-sizing: border-box;
        background: #f6f3ee;
        border-top: 1px solid #d4af37;
        border-bottom: 1px solid #d4af37;
        text-align: center;
    }

    .memory-history-text h2 {
        margin: 0 0 20px;
        font-size: 23px;
        line-height: 1.35;
        letter-spacing: 1.5px;
        color: #9b792e;
    }

    .memory-history-text p {
        margin: 0 0 16px;
        font-size: 16px;
        line-height: 1.7;
        overflow-wrap: break-word;
    }

    .memory-history-text p:last-child {
        margin-bottom: 0;
    }

    .memory-history-text strong {
        display: block;
        margin: 8px 0 0;
        font-size: 1.08em;
        line-height: 1.5;
        letter-spacing: 0.3px;
        color: #9b792e;
    }
}

/* ALWAYS SHOW DOG NAMES ON MOBILE */

@media (max-width: 700px) {

    .memory-hotspot span {
        opacity: 1;
        top: 27px;
        left: 50%;
        transform: translateX(-50%);

        width: max-content;
        max-width: 150px;

        white-space: normal;
        overflow-wrap: break-word;

        font-size: 10px;
        line-height: 1.25;
        letter-spacing: 0.3px;
        text-align: center;

        color: #ffffff;

        text-shadow:
            0 1px 3px rgba(0, 0, 0, 1),
            0 0 7px rgba(0, 0, 0, 1),
            0 0 12px rgba(0, 0, 0, 0.95),
            0 0 16px rgba(255, 225, 120, 0.7);
    }

}

/* ALWAYS SHOW DOG NAMES ON MOBILE */

@media (max-width: 700px) {

    .memory-hotspot span {
        opacity: 1;
        font-size: 9px;
        letter-spacing: 0.2px;
        line-height: 1.2;
    }

}

/* Visually hidden heading for accessibility and SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}