html,
body{
    margin:0;
    padding:0;
    width:100%;
    min-height:100%;
    background:#ededed;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body{
    display: flex;
    flex-direction: column;
    align-items: center;
}

img{
    display:block;
    max-width:100%;
    max-height:100vh;
    width:auto;
    height:auto;
}

a {text-decoration: none;}

.seo{
    position:absolute;
    left:-99999px;
    top:-99999px;
    width:1px;
    height:1px;
    overflow:hidden;
}

/* Gallery Styles */
.fb-gallery-container {
    width: 100%;
    max-width: 1500px;
    margin: 20px auto;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}
/* Google Photos Header Styles */
.fb-gallery-header {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dadce0;
    font-family: 'Product Sans', 'Google Sans', Roboto, Arial, sans-serif;
}
.google-photos-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.5px;
}
.google-text {
    margin-top: 2px;
}
.gallery-title {
    font-size: 20px;
    color: #3c4043;
    font-weight: 500;
    margin: 10px 0 0;
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}
.lightbox.active img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding-bottom: 4px;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    transition: background 0.3s ease;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    z-index: 1001;
}
.lightbox-nav:hover {
    background: rgba(0,0,0,0.8);
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}

.lightbox-caption{
    position:absolute;
    left:20px;
    right:20px;
    bottom:20px;
    color:#fff;
    font-size:16px;
    font-weight:500;
    text-align:center;
    /* text-shadow:0 2px 8px rgba(0,0,0,.9); */
    pointer-events:none;
    z-index:1002;
    background: rgb(0 0 0 / 35%);
    padding: 5px;
}

.fb-gallery-grid {
    column-count: 4;
    column-gap: 8px;
}
@media (max-width: 1000px) {
    .fb-gallery-grid { column-count: 3; }
}
@media (max-width: 768px) {
    .fb-gallery-grid { column-count: 2; }
    .lightbox-nav {
        font-size: 20px;
        padding: 7px;
    }
    .lightbox-prev {left: 12px;}
    .lightbox-next {right: 12px;}
}
@media (max-width: 480px) {
    .fb-gallery-grid { column-count: 1; }
}
.fb-gallery-item {
    display: block;
    margin: 0 0 7px;
    background-color: #f0f2f5;
    overflow: hidden;
    break-inside: avoid;
    border-radius: 4px;
}
.fb-gallery-item img.gallery-img {
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 8px;
    display: block;
    transition: filter 0.2s ease;
}
.fb-gallery-item:hover img.gallery-img {
    filter: brightness(0.85);
}
.fb-gallery-caption {
    display: block;
    padding: 5px 8px 6px;
    font-size: 13px;
    color: #3c4043;
    background: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* Year Selector */
.year-selector-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.year-btn {
    padding: 6px 18px;
    border: 1px solid #dadce0;
    border-radius: 20px;
    background: #fff;
    color: #3c4043;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: inherit;
}
.year-btn:hover {
    background: #f1f3f4;
    border-color: #bdc1c6;
}
.year-btn.active {
    background: #0061fe;
    border-color: #0061fe;
    color: #fff;
}
