@font-face {
    font-family: "Montserrat";
    src: url("/src/Infrastructure/Fonts/Montserrat/Montserrat-VariableFont_wght.woff2") format("woff2"),
    url("/src/Infrastructure/Fonts/Montserrat/Montserrat-VariableFont_wght.woff2") format("woff");
url("/src/Infrastructure/Fonts/Montserrat/Montserrat-VariableFont_wght.ttf") format("ttf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #1a1a1a;
    /*font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;*/
    font-family: "Montserrat", monospace;
    overflow: hidden;
}

.gallery-container {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

.gallery {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(5, 250px);
    grid-template-rows: repeat(5, 350px);
    gap: 10px;
    padding: 40px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.gallery.smooth {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.memory-card {
    position: relative;
    width: 250px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.memory-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    pointer-events: none;
}

.memory-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(0deg,#000000A3 10%, rgba(255, 255, 255, 0) 100%);
    color: white;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.memory-card:hover .card-overlay {
    opacity: 1;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: center;
}

.card-date {
    font-size: 12px;
    opacity: 0.7;
    text-align: center;
}

.memory-card.centered {
    transform: scale(1.1);
    filter: brightness(1.1);
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.memory-card:not(.centered) {
    filter: brightness(0.7);
}

.add-album-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 100;
    width: 50px;
    height: 50px;
    font-size: 25px;
}

.add-album-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.info-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    z-index: 100;
    text-align: center;
}

.card-overlay-blur {
    width: 100%;
    height: 120px;
    mask: linear-gradient(0deg,black, black, transparent);
    backdrop-filter: blur(2px);
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 1;
    /*transition: opacity 0.3s ease;*/
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #2a2a2a;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {

}

.modal-header {
    position: absolute;
    padding: 20px;
    display: flex;
    justify-content: start;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.modal-close {
    background: rgba(191, 191, 191, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;


    backdrop-filter: blur(5px);
    font-weight: 500;
    z-index: 100;
}

.modal-setting {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;

    margin-left: auto;

    backdrop-filter: blur(10px);
    font-weight: 400;
    z-index: 100;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.modal-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-image-container {
    position: absolute;
    width: 100%;
    min-height: 500px;
    max-height: 500px;
    overflow: hidden;
}

.modal-transparent-container {
    min-height: 400px;
    width: 100%;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    aspect-ratio: 2/3;
    max-height: 500px;
}

.modal-image-title {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
}

.modal-image-title h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    margin-top: 50px;
}

.modal-subheader {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.9;
    height: 45px;
    border-radius: 15px;
    padding: 0 20px;
    margin-bottom: 10px;
    background: rgba(191, 191, 191, 0.36);
    backdrop-filter: blur(10px);
}

.modal-avatars {
    display: flex;
    margin-right: 4px;
}

.modal-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #2a2a2a;
    margin-left: -8px;
}

.modal-avatar:first-child {
    margin-left: 0;
}

.modal-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-date {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.modal-body {
    color: white;
    background: #2a2a2a;
    border-radius: 35px 35px 0 0;
    /*position: relative;*/
    /*top: -100px;*/
    /*left: 0;*/
    /*height: calc( 100% - 400px );*/
    z-index: 2;
}

.modal-body-inner {
    overflow-y: auto;
    height: 100%;
    padding: 20px 30px 30px 30px;
}

.modal-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.modal-gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.modal-settings-buttons {
    height: 40px;
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.modal-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-gallery-add-button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-image-dark-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.8);
    height: 100px;
}




/** {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    box-sizing: border-box;*/
/*}*/

/*body {*/
/*    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;*/
/*    background: #d0bcffcf;*/
/*    min-height: 100vh;*/
/*    padding: 20px;*/
/*    padding-bottom: 80px;*/
/*}*/

/*.container {*/
/*    max-width: 600px;*/
/*    margin: 0 auto;*/
/*}*/

/*!* Login Screen *!*/
/*.login-screen {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    min-height: 80vh;*/
/*}*/

/*.login-box {*/
/*    background: #fff;*/
/*    padding: 40px;*/
/*    border-radius: 20px;*/
/*    box-shadow: 0 20px 60px rgba(0,0,0,0.3);*/
/*    text-align: center;*/
/*    width: 100%;*/
/*    max-width: 400px;*/
/*}*/

/*.login-box h1 {*/
/*    color: #ec4899;*/
/*    margin-bottom: 10px;*/
/*    font-size: 2em;*/
/*}*/

/*.login-box p {*/
/*    color: #666;*/
/*    margin-bottom: 30px;*/
/*}*/

/*.pin-input {*/
/*    display: flex;*/
/*    gap: 10px;*/
/*    justify-content: center;*/
/*    margin-bottom: 20px;*/
/*}*/

/*.pin-input input {*/
/*    width: 50px;*/
/*    height: 60px;*/
/*    font-size: 24px;*/
/*    text-align: center;*/
/*    border: 2px solid #ddd;*/
/*    border-radius: 10px;*/
/*    outline: none;*/
/*    transition: all 0.3s;*/
/*}*/

/*.pin-input input:focus {*/
/*    border-color: #ec4899;*/
/*    transform: scale(1.05);*/
/*}*/

/*.login-btn {*/
/*    width: 100%;*/
/*    padding: 15px;*/
/*    background: linear-gradient(135deg, #6750a4, #d0bcff);*/
/*    color: white;*/
/*    border: none;*/
/*    border-radius: 10px;*/
/*    font-size: 16px;*/
/*    font-weight: bold;*/
/*    cursor: pointer;*/
/*    transition: transform 0.2s;*/
/*}*/

/*.login-btn:active {*/
/*    transform: scale(0.95);*/
/*}*/

/*.error {*/
/*    color: #ef4444;*/
/*    margin-top: 10px;*/
/*    font-size: 14px;*/
/*}*/

/*!* Header *!*/
/*header {*/
/*    background: white;*/
/*    padding: 20px;*/
/*    border-radius: 20px;*/
/*    margin-bottom: 20px;*/
/*    box-shadow: 0 4px 6px rgba(0,0,0,0.1);*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*}*/

/*header h1 {*/
/*    color: #ec4899;*/
/*    font-size: 1.5em;*/
/*}*/

/*.logout-btn {*/
/*    background: #ef4444;*/
/*    color: white;*/
/*    border: none;*/
/*    padding: 8px 16px;*/
/*    border-radius: 8px;*/
/*    cursor: pointer;*/
/*    font-size: 14px;*/
/*}*/

/*!* Upload Button *!*/
/*.upload-section {*/
/*    position: fixed;*/
/*    bottom: 20px;*/
/*    left: 50%;*/
/*    transform: translateX(-50%);*/
/*    z-index: 100;*/
/*}*/

/*.upload-btn {*/
/*    width: 60px;*/
/*    height: 60px;*/
/*    border-radius: 50%;*/
/*    background: linear-gradient(135deg, #ec4899, #8b5cf6);*/
/*    color: white;*/
/*    border: none;*/
/*    font-size: 30px;*/
/*    cursor: pointer;*/
/*    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);*/
/*    transition: transform 0.2s;*/
/*}*/

/*.upload-btn:active {*/
/*    transform: scale(0.9);*/
/*}*/

/*#fileInput {*/
/*    display: none;*/
/*}*/

/*!* Gallery *!*/
/*.gallery {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));*/
/*    gap: 15px;*/
/*    margin-bottom: 20px;*/
/*}*/

/*.photo-card {*/
/*    position: relative;*/
/*    height: 320px;*/
/*    width: 230px;*/
/*    border-radius: 30px;*/
/*    overflow: hidden;*/
/*    box-shadow: 0 4px 6px rgba(0,0,0,0.1);*/
/*    cursor: pointer;*/
/*    transition: transform 0.2s;*/
/*}*/

/*.photo-card:active {*/
/*    transform: scale(0.95);*/
/*}*/

/*.photo-card img {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover;*/
/*}*/

/*.delete-btn {*/
/*    position: absolute;*/
/*    top: 8px;*/
/*    right: 8px;*/
/*    background: rgba(239, 68, 68, 0.9);*/
/*    color: white;*/
/*    border: none;*/
/*    width: 30px;*/
/*    height: 30px;*/
/*    border-radius: 50%;*/
/*    cursor: pointer;*/
/*    font-size: 16px;*/
/*    display: none;*/
/*}*/

/*.photo-card:hover .delete-btn {*/
/*    display: block;*/
/*}*/

/*!* Modal *!*/
/*.modal {*/
/*    display: none;*/
/*    position: fixed;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    bottom: 0;*/
/*    background: rgba(0,0,0,0.95);*/
/*    z-index: 1000;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/

/*.modal.active {*/
/*    display: flex;*/
/*}*/

/*.modal img {*/
/*    max-width: 90%;*/
/*    max-height: 90vh;*/
/*    border-radius: 10px;*/
/*}*/

/*.close-modal {*/
/*    position: absolute;*/
/*    top: 20px;*/
/*    right: 20px;*/
/*    background: white;*/
/*    color: #333;*/
/*    border: none;*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    border-radius: 50%;*/
/*    font-size: 24px;*/
/*    cursor: pointer;*/
/*}*/

/*.empty-state {*/
/*    text-align: center;*/
/*    padding: 60px 20px;*/
/*    color: white;*/
/*}*/

/*.empty-state h2 {*/
/*    font-size: 3em;*/
/*    margin-bottom: 10px;*/
/*}*/

/*.hidden {*/
/*    display: none !important;*/
/*}*/