/* Small corrections to the existing GrandTour interface. */
.is-form-id-6443 { position: relative; }
.is-form-id-6443 .is-search-input { padding-right: 36px !important; }
.is-form-id-6443 .host-site-search-submit { position:absolute; right:2px; top:2px; width:30px; height:28px; min-width:0; padding:0; margin:0; border:0; border-radius:2px; background:#fff; color:#111; display:grid; place-items:center; cursor:pointer; }
.is-form-id-6443 .host-site-search-submit:hover { background:#e8e8e8; }
.host-site-search-submit:focus-visible, .host-site-404 a:focus-visible, .host-site-404 button:focus-visible, .host-site-404 input:focus-visible { outline:3px solid #167c88; outline-offset:3px; }
.host-site-404-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin:24px 0; }
.host-site-404-actions a { display:inline-block; padding:12px 22px; border:1px solid #222; border-radius:4px; color:#222; text-decoration:none; }
.host-site-404-actions a:first-child { background:#222; color:#fff; }
.host-site-404 .search_form_wrapper { max-width:720px; margin:0 auto 36px; }
.host-site-query-label { display:block; margin-bottom:10px; font-weight:600; }
.host-site-query-form { display:flex; gap:10px; align-items:stretch; }
.host-site-query-form input[type="search"] { min-width:0; flex:1; height:48px; margin:0; padding:10px 14px; }
.host-site-query-form button { flex:0 0 auto; margin:0; padding:10px 22px; min-height:48px; border:1px solid #222; border-radius:4px; background:#222; color:#fff; cursor:pointer; }
.host-site-404 .host-site-404-description { text-align:center; margin-bottom:18px; }
@media (max-width:600px) {
    #is-ajax-search-result-6443.is-ajax-search-result { left:12px !important; right:12px !important; width:auto !important; min-width:0 !important; max-width:calc(100vw - 24px) !important; box-sizing:border-box !important; }
    .host-site-query-form { flex-wrap:wrap; }
    .host-site-query-form input[type="search"] { flex-basis:100%; width:100%; }
    .host-site-query-form button { width:100%; }
    .host-site-404-actions a { text-align:center; flex:1 1 130px; }
}
@media (min-width:601px) and (max-width:1024px) {
    .gallery.grid.four_cols .portfolio_info_wrapper { padding:12px !important; }
    .gallery.grid.four_cols .portfolio_info_wrapper h3, .gallery.grid.four_cols .portfolio_info_wrapper h4, .gallery.grid.four_cols .portfolio_info_wrapper h5 { font-size:16px; line-height:1.4; word-break:normal; }
}

/* Give destination titles enough room on tablets without changing desktop cards. */
@media (min-width:601px) and (max-width:1024px) {
    .gallery.grid.portrait.four_cols { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
    .gallery.grid.portrait.four_cols:before, .gallery.grid.portrait.four_cols:after { display:none; }
    .gallery.grid.portrait.four_cols > .element.grid.classic4_cols { width:auto !important; margin:0 !important; float:none !important; }
    .gallery.grid.portrait.four_cols .one_fourth.gallery4 { width:100% !important; float:none !important; margin:0 !important; min-height:240px; }
    .gallery.grid.portrait.four_cols .portfolio_info_wrapper h3, .gallery.grid.portrait.four_cols .portfolio_info_wrapper h4 { font-size:18px; }
}
@media (min-width:901px) and (max-width:1024px) {
    .gallery.grid.portrait.four_cols { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
