/* Google Photos Gallery 1.6.3 */
body .gpg-gallery,
body .entry-content .gpg-gallery,
body .wp-block-shortcode .gpg-gallery {
    display: flex !important;
    flex-flow: row wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    align-content: flex-start !important;
    gap: 16px !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(1100px, calc(100vw - 120px)) !important;
    max-width: min(1100px, calc(100vw - 120px)) !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
body .gpg-gallery, body .gpg-gallery * { box-sizing: border-box !important; }
body .gpg-gallery > a.gpg-card {
    display: flex !important;
    flex: 0 0 230px !important;
    flex-direction: column !important;
    width: 230px !important;
    max-width: 230px !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    grid-column: auto !important;
    color: #f4f5f6 !important;
    text-decoration: none !important;
    background: #202427 !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 11px !important;
    box-shadow: 0 7px 20px rgba(0,0,0,.17) !important;
}
body .gpg-gallery .gpg-card__image { position:relative!important; display:block!important; flex:0 0 140px!important; width:100%!important; height:140px!important; overflow:hidden!important; background:#292f33!important; }
body .gpg-gallery .gpg-card__image img { display:block!important; width:100%!important; height:100%!important; object-fit:cover!important; }
body .gpg-gallery .gpg-card__open {
    position:absolute!important;
    right:7px!important;
    bottom:7px!important;
    padding:4px 6px!important;
    color:#171717!important;
    background:#d4a85c!important;
    border-radius:4px!important;
    font-size:9px!important;
    line-height:1.15!important;
    font-weight:700!important;
    white-space:nowrap!important;
}
body .gpg-gallery .gpg-card__content {
    display:flex!important;
    flex:1 0 48px!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:48px!important;
    gap:3px!important;
    padding:7px 10px!important;
    background:#202427!important;
    color:#f4f5f6!important;
    text-align:center!important;
}
body .gpg-gallery .gpg-card__title {
    display:block!important;
    width:100%!important;
    align-self:center!important;
    color:#f4f5f6!important;
    font-size:11px!important;
    font-weight:700!important;
    line-height:1.2!important;
    margin:0!important;
    text-align:center!important;
}
body .gpg-gallery .gpg-card__description { display:block!important; width:100%!important; color:#aeb6bb!important; font-size:11px!important; line-height:1.4!important; text-align:center!important; }
body .entry-title, body .page-title, body h1.wp-block-post-title { font-size:24px !important; line-height:1.2 !important; }
@media (max-width: 600px) {
    body .gpg-gallery { width:calc(100vw - 32px)!important; max-width:calc(100vw - 32px)!important; gap:12px!important; }
    body .gpg-gallery > a.gpg-card { flex:0 0 calc(50% - 6px)!important; width:calc(50% - 6px)!important; max-width:calc(50% - 6px)!important; }
    body .gpg-gallery .gpg-card__image { flex-basis:120px!important; height:120px!important; }
    body .gpg-gallery .gpg-card__title { font-size:10px!important; }
}
@media (max-width: 360px) {
    body .gpg-gallery > a.gpg-card { flex-basis:100%!important; width:100%!important; max-width:100%!important; }
}

/* Single-album shortcode: wider card, unchanged 140px image height. */
body .gpg-gallery--single > a.gpg-card {
    flex-basis: 340px !important;
    width: 340px !important;
    max-width: min(340px, calc(100vw - 32px)) !important;
}
body .gpg-gallery--single .gpg-card__image {
    flex-basis: 140px !important;
    height: 140px !important;
}
