/* Spacing above #main (six <br> in the original markup). */
body { padding-top: 108px; }

/* WordPress core alignment classes. */
.alignleft { float: left; margin: 0 14px 8px 0; }
.alignright { float: right; margin: 0 0 8px 14px; }
.aligncenter { display: block; margin: 0 auto 8px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; text-align: center; }
#page-content img, .content img { max-width: 100%; height: auto; }
#page-content iframe, .content iframe { max-width: 100%; }

/* Photo gallery (former "Gallery by BestWebSoft" plugin markup). */
.gallery_box_single .gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 10px 0 20px; }
.gallery_box_single .gllr_image_row { display: contents; }
.gallery_box_single .gllr_image_block p { width: auto !important; height: auto !important; margin: 0; }
.gallery_box_single .gllr_image_block img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1; object-fit: cover; box-sizing: border-box; border: 5px solid #fff !important; box-shadow: 0 0 4px rgba(0, 0, 0, .15); }
.gallery_box_single .gllr_single_image_text { display: none; }

/* Sidebar "Sur X" link (replaces the defunct Twitter timeline embed). */
.ag-x-follow a { display: inline-block; line-height: 26px; color: #444; text-decoration: none; }
.ag-x-follow a span { float: left; width: 30px; height: 26px; overflow: hidden; margin-right: 10px; }
.ag-x-follow a span img { display: block; }
.ag-x-follow a:hover { color: #af2e19; }
.ag-x-follow a:hover img { margin-top: -26px; }

/* Share links under articles. */
.ag-share { clear: both; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 0; padding: 15px 0 0; border-top: 1px solid #eee; }
.ag-share-label { margin-right: 4px; font-size: 13px; color: #777; }
.ag-share a { display: inline-block; padding: 4px 12px; border: 1px solid #ddd; border-radius: 4px; background: #fff; font-size: 12px; line-height: 18px; text-transform: uppercase; text-decoration: none; color: #444; }
.ag-share a:hover, .ag-share a:focus { border-color: #af2e19; background: #af2e19; color: #fff; }

/* Article paragraphs (split from <br> runs by ag_br_to_paragraphs). */
.single-post .content p { margin: 0 0 1em; }

/* Contact form (Contact Form 7). */
.wpcf7 label { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea { width: 100%; max-width: 460px; box-sizing: border-box; padding: 6px 8px; border: 1px solid #d9d9d9; font: inherit; color: #555; background: #fff; text-transform: none; }
.wpcf7 textarea { max-width: 100%; height: 180px; }
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: #af2e19; outline: none; }
.wpcf7 .wpcf7-acceptance label { display: inline; }
.wpcf7 input[type="submit"] { background: #af2e19; color: #fff; border: 0; padding: 8px 22px; font: inherit; text-transform: uppercase; cursor: pointer; }
.wpcf7 input[type="submit"]:disabled { opacity: .5; cursor: default; }
.wpcf7 .wpcf7-not-valid-tip { color: #af2e19; font-size: 12px; }
.wpcf7 form .wpcf7-response-output { margin: 15px 0 0; padding: 8px 12px; }

/* Lightbox. */
.ag-lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .85); }
.ag-lightbox.is-open { display: flex; }
.ag-lightbox img { max-width: 90vw; max-height: 88vh; border: 5px solid #fff; box-shadow: 0 0 25px rgba(0, 0, 0, .5); }
.ag-lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 48px; line-height: 1; cursor: pointer; padding: 10px 18px; }
.ag-lightbox .ag-lb-close { top: 10px; right: 10px; font-size: 40px; }
.ag-lightbox .ag-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.ag-lightbox .ag-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Search form in 404 / empty results. */
.search-form { margin-top: 20px; }
