/* ==========================================================================
   Reset and Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'EB Garamond', serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
}

/* Selection Colors */
::selection {
    background-color: #ffc107;
    color: #000000;
}

::-moz-selection {
    background-color: #ffc107;
    color: #000000;
}

.footer ::selection,
.header ::selection {
    background-color: #e0e0e0;
    color: #000000;
}

.footer ::-moz-selection,
.header ::-moz-selection {
    background-color: #e0e0e0;
    color: #000000;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Vertical Side Lines */
.page-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.page-lines::before,
.page-lines::after {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.page-lines::before {
    left: 11%;
}

.page-lines::after {
    right: 11%;
}

/* ==========================================================================
   Header - Transparent with Scroll Behavior
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1400;
    background: transparent;
    backdrop-filter: none;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.nav-right {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.01em;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.logo.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #ffffff);
    z-index: 1001;
    transition: width 0.1s ease;
    opacity: 0;
}

.progress-bar.visible {
    opacity: 1;
}

/* Section Divider */
.section-divider {
    position: relative;
    width: 100%;
    height: 40px;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)) top/100% 1px no-repeat,
        linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)) bottom/100% 1px no-repeat,
        repeating-linear-gradient(135deg, transparent, transparent 3px, rgba(255,255,255,0.08) 3px, rgba(255,255,255,0.08) 4px);
    background-position: top left, bottom left, center;
    background-repeat: no-repeat, no-repeat, repeat;
    background-size: 100% 1px, 100% 1px, 16px 16px;
}

/* Search Button */
.search-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.625rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: 40px;
}

.search-btn:hover {
    transform: translateY(-1px);
}

.search-shortcut {
    font-size: 0.90rem;
    color: #ffffff;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.10);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Search Dialog Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
}

.search-overlay * {
    font-family: inherit;
}

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

.search-dialog {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.95) 0%,
        rgba(20, 20, 20, 0.9) 50%,
        rgba(15, 15, 15, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 100%;
    max-width: 540px;
    max-height: 70vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(-10px);
    transition: all 0.2s ease;
}

.search-overlay.active .search-dialog {
    transform: scale(1) translateY(0);
}

/* Search Header */
.search-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-icon {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

#searchInput {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.125rem;
    font-family: inherit;
    outline: none;
    padding: 0;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Search Results */
.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-section {
    margin-bottom: 1rem;
}

.search-section:last-child {
    margin-bottom: 0;
}

.search-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}

.search-items {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    cursor: pointer;
}

.search-item:hover,
.search-item.selected {
    background: rgba(255, 255, 255, 0.05);
}

.search-item-content {
    flex: 1;
    min-width: 0;
}

.search-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.125rem;
}

/* Search Footer */
.search-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.search-shortcuts {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.shortcut-hint {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

kbd {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 3px;
    padding: 0.125rem 0.25rem;
    font-size: 0.625rem;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.lifelog-hero-section {
    display: flex;
    justify-content: flex-start;
    padding-top: 8rem;
    padding-bottom: 1rem;
    position: relative;
}

.lifelog-hero-content {
    max-width: 1150px;
    width: 100%;
    margin: 0;
    text-align: left;
    padding-left: 0rem;
}

.lifelog-hero-title {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 3rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-align: left;
}

.lifelog-hero-description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 0rem;
    text-align: left;
}

.lifelog-hero-description p {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: -0.01em;
    text-align: left;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */

.gallery-section {
    padding: 4rem 0;
    background-color: #0a0a0a;
    position: relative;
}

/* Gallery Controls */
.gallery-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.search-box-container {
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 2rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.gallery-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.gallery-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.gallery-search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Collections Bar */
.collections-bar {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.collections-bar::-webkit-scrollbar {
    display: none;
}

.collection-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.625rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.collection-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.collection-chip.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Photo Count */
.photo-count {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Masonry Grid (CSS Columns)
   ========================================================================== */

.masonry-grid {
    column-count: 4;
    column-gap: 1.5rem;
    margin-bottom: 3rem;
}

.photo-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    width: 100%;
}

.photo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.photo-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1a1a1a;
}

.photo-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.photo-card:hover .photo-card-image img {
    transform: scale(1.05);
}

/* Photo Count Badge */
.photo-count-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    z-index: 2;
}

.photo-count-badge svg {
    width: 14px;
    height: 14px;
}

/* Hover Overlay */
.photo-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-card-overlay {
    opacity: 1;
}

.photo-card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.photo-card-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* No Results */
.no-results {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
}

.no-results p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.5);
}

.no-results.visible {
    display: block;
}

/* ==========================================================================
   Photo Modal
   ========================================================================== */

.photo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.photo-modal {
    position: relative;
    width: 95%;
    max-width: 1400px;
    height: 92vh;
    margin: 4vh auto;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(20, 20, 20, 0.92) 50%, rgba(15, 15, 15, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-overlay.active .photo-modal {
    transform: scale(1) translateY(0);
}

/* Close Button */
.photo-close {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.photo-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: rotate(90deg);
}

/* Modal Inner Layout */
.photo-modal-inner {
    display: flex;
    height: 100%;
}

.photo-image-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000000;
    overflow: hidden;
}

.photo-carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.carousel-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.image-shield {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    min-height: 50px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}
/* Image Navigation Arrows (for carousel within post) */
.image-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0;
}

.photo-carousel:hover .image-nav-arrow {
    opacity: 1;
}

.image-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.image-nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.image-nav-left {
    left: 1rem;
}

.image-nav-right {
    right: 1rem;
}

.image-nav-arrow svg {
    width: 20px;
    height: 20px;
}

/* Photo Details Section */
.photo-details-section {
    width: 380px;
    background: rgba(15, 15, 15, 0.98);
    padding: 2.5rem 2rem;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-details-section::-webkit-scrollbar {
    width: 4px;
}

.photo-details-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.photo-title {
    font-size: 1.75rem;
    font-weight: 500;
    color: #ffffff;
    margin-top: 1.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.photo-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.photo-date,
.photo-location {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.photo-date::before {
    content: '📅';
}

.photo-location::before {
    content: '📍';
}

.photo-collections {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.photo-collection-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.photo-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 1.5rem 0;
}

.photo-memory {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

/* ==========================================================================
   Contact & Footer
   ========================================================================== */

.contact-section {
    padding: 6rem 0;
    background-color: #0a0a0a;
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.contact-info {
    margin-bottom: 2rem;
}

.meet-link {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.meet-link:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.resume-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.resume-btn:hover {
    transform: translateY(-2px);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    margin-bottom: 1rem;
    align-items: start;
}

.footer-logo-link {
    font-size: 1.25rem;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.footer-center {
    display: flex;
    justify-content: flex-end;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-link {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin-bottom: 1.25rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}
/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1400px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
    
    .photo-modal-inner {
        flex-direction: column;
    }

    .photo-details-section {
        width: 100%;
        max-height: 40vh;
    }

    .photo-image-section {
        max-height: 60vh;
    }
}

@media (max-width: 768px) {
    .page-lines {
        display: none;
    }

    .container {
        padding: 0 1.5rem;
    }

    .lifelog-hero-title {
        font-size: 1.75rem;
    }

    .lifelog-hero-description p {
        font-size: 1.125rem;
    }

    .lifelog-grid {
        column-count: 3;
        column-gap: 1rem;
    }
    
    .photo-card {
        margin-bottom: 1rem;
    }

    .photo-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    .photo-details-section {
        padding: 1.5rem 1.25rem;
    }

    .photo-title {
        font-size: 1.5rem;
    }

    .search-btn {
        padding: 0.5rem;
    }
    
    .search-shortcut {
        display: none;
    }
    
    .search-overlay {
        padding-top: 10vh;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .search-dialog {
        max-height: 80vh;
    }
    
    .search-shortcuts {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .search-footer {
        display: none;
    }

    .contact-title {
        font-size: 2rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 2.5rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-left {
        align-items: center; /* Center logo and tagline */
    }
    
    .footer-center {
        justify-content: center; /* Center the links */
        margin-left: 0;
    }
    
    .footer-links {
        justify-content: center;
        margin-left: 0;
        flex-wrap: wrap;
    }
    
    .footer-link {
        font-size: 0.9rem; /* Slightly smaller on mobile */
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-divider {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .lifelog-hero-title {
        font-size: 1.5rem;
    }

    .lifelog-hero-description p {
        font-size: 1rem;
    }
    
    .nav {
        padding: 1rem 0;
    }
    .nav-right {
        gap: 1rem;
    }

    .masonry-grid {
        column-count: 2;
        column-gap: 0.75rem;
    }

    .photo-card {
        margin-bottom: 0.75rem;
    }

    .photo-card-title {
        font-size: 0.875rem; 
    }

    .photo-card-date {
        font-size: 0.625rem; 
    }
    
    .photo-card-overlay {
        padding: 1rem 0.75rem 0.75rem;
    }

    .collections-bar {
        gap: 0.5rem;
    }

    .collection-chip {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }

    .photo-modal {
        width: 98%;
        height: 95vh;
        margin: 2.5vh auto;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo-link {
        font-size: 1.125rem; /* Slightly smaller logo */
    }
    
    .footer-links {
        gap: 1.5rem; /* Tighter spacing between links */
        flex-direction: row; /* Keep horizontal but allow wrapping */
    }
    
    .footer-link {
        font-size: 0.85rem;
        padding: 0.15rem 0;
    }
    
    .footer-tagline {
        font-size: 0.7rem;
    }
    
    .footer-location,
    .footer-copyright {
        font-size: 0.7rem;
    }
}
