/*
 * Arcade Services – styles added for WordPress.
 * The original design is in assets/css/legacy/ (do not edit those files unless you mean to change
 * the base design; put your changes here or in a page's "Page CSS" field).
 *
 *  1. WordPress admin bar
 *  2. Page slots (Group blocks) and blocks inside the Weebly layout
 *  3. Slideshows
 *  4. Lightbox
 *  5. Forms
 *  6. Blog pagination
 *  7. WordPress core classes
 */

/* 1. WordPress admin bar -------------------------------------------------------------- */
body.admin-bar .top-bar.tb-small { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .top-bar.tb-small { top: 46px; }
}
@media screen and (max-width: 600px) {
	body.admin-bar .top-bar.tb-small { top: 0; }
}

/* 2. Page slots ------------------------------------------------------------------------ */
/* Group blocks are only containers in the editor; on the front end they render no box. */
.arcade-slot-banner,
.arcade-slot-body,
.arcade-slot-cta { display: contents; }

/* Blocks added with the block editor inside the Weebly layout. */
#wsite-content > p,
#wsite-content > h1,
#wsite-content > h2,
#wsite-content > h3,
#wsite-content > ul,
#wsite-content > ol,
#wsite-content > figure { max-width: 1170px; margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; }

/* 3. Slideshows (markup built by arcade-weebly.js, styled by legacy/slideshow.css) ------ */
.arcade-slideshow { display: block; }
.arcade-slideshow > img { display: none; }
.arcade-slideshow > img:first-child { display: block; max-width: 100%; height: auto; }
.arcade-wslide { width: 100%; }
.arcade-wslide .wslide-content { width: 100%; }
.arcade-wslide .wslide-slide-inner2 img { display: block; max-width: none; }
.arcade-wslide .wslide-links { height: 75px; }
/* "Numbers" under a slideshow (instead of thumbnails). */
.arcade-wslide .wslide-number-links { height: auto; }
.arcade-wslide .wslide-number-links .wslide-links-inner { position: static; }
.arcade-wslide .wslide-link-inner1,
.arcade-wslide .wslide-link-inner2 { display: block; }
.arcade-wslide .wslide-link-thumbnail img { max-width: none; }
.arcade-wslide .wslide-button { text-decoration: none; }
.arcade-wslide .wslide-button-inner,
.arcade-wslide .wslide-button-bg { display: block; }

/* 4. Lightbox (same look as the Weebly/fancyBox lightbox) ------------------------------- */
html.arcade-lightbox-lock { overflow: hidden; }
.arcade-lightbox { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100000; }
.arcade-lightbox.is-open { display: block; }
.arcade-lightbox-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.75); }
.arcade-lightbox-wrap { position: absolute; top: 40px; left: 40px; }
.arcade-lightbox-skin { position: relative; padding: 10px; background: #f9f9f9; color: #444; border-radius: 4px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); }
.arcade-lightbox-inner { position: relative; overflow: hidden; line-height: 0; }
.arcade-lightbox-image { display: block; max-width: none; }
.arcade-lightbox.is-loading .arcade-lightbox-image { opacity: 0.4; }
.arcade-lightbox-title { padding-top: 10px; font: 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif; text-align: center; }
.arcade-lightbox-nav { display: none; position: absolute; top: 0; width: 40%; height: 100%; cursor: pointer; text-decoration: none; }
.arcade-lightbox.has-group .arcade-lightbox-nav { display: block; }
.arcade-lightbox-prev { left: 0; }
.arcade-lightbox-next { right: 0; }
.arcade-lightbox-nav span { visibility: hidden; position: absolute; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); }
.arcade-lightbox-prev span { left: 20px; }
.arcade-lightbox-next span { right: 20px; }
.arcade-lightbox-nav:hover span,
.arcade-lightbox-nav:focus span { visibility: visible; }
.arcade-lightbox-nav span:before { content: ""; position: absolute; top: 12px; width: 10px; height: 10px; border-top: 3px solid #fff; border-left: 3px solid #fff; }
.arcade-lightbox-prev span:before { left: 14px; transform: rotate(-45deg); }
.arcade-lightbox-next span:before { left: 9px; transform: rotate(135deg); }
.arcade-lightbox-close { position: absolute; top: -18px; right: -18px; width: 36px; height: 36px; border-radius: 50%; background: #222; border: 2px solid #fff; box-shadow: 0 0 6px rgba(0, 0, 0, 0.5); z-index: 2; }
.arcade-lightbox-close:before,
.arcade-lightbox-close:after { content: ""; position: absolute; top: 15px; left: 8px; width: 16px; height: 2px; background: #fff; transform: rotate(45deg); }
.arcade-lightbox-close:after { transform: rotate(-45deg); }
.arcade-lightbox-thumbs { display: none; position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; overflow: hidden; }
.arcade-lightbox.has-group .arcade-lightbox-thumbs { display: block; }
.arcade-lightbox-thumbs ul { display: inline-block; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.arcade-lightbox-thumbs li { display: inline-block; padding: 1px; opacity: 0.5; }
.arcade-lightbox-thumbs li.active { opacity: 0.75; padding: 0; border: 1px solid #fff; }
.arcade-lightbox-thumbs li:hover { opacity: 1; }
.arcade-lightbox-thumbs a { display: block; width: 50px; height: 50px; overflow: hidden; border: 1px solid #222; background: #111; }
.arcade-lightbox-thumbs img { display: block; width: 50px; height: 50px; object-fit: cover; }

/* 5. Forms ----------------------------------------------------------------------------- */
.arcade-form-message { margin: 10px 0; font-weight: bold; }
/* Confirmation flash after sending (like Weebly's jQuery UI "highlight" effect). */
.arcade-form-result { transition: background-color 2s; }
.arcade-form-result.arcade-form-highlight { background-color: #ffff99; transition: none; }
.arcade-form-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* The Weebly Like / Tweet widgets (which never rendered) still took up 22px under every post. */
.blog-body .blog-social { min-height: 22px; }
/* Optional share links (Customizer), same size as the old widgets: 22px high. */
.blog-body .blog-social-item.arcade-share a { display: inline-block; height: 22px; line-height: 22px; padding: 0 10px; border-radius: 3px; font: bold 11px/22px Helvetica, Arial, sans-serif; color: #fff !important; text-decoration: none !important; }
.blog-body .arcade-share-facebook { background: #4267b2; }
.blog-body .arcade-share-x { background: #1d1d1d; }
.blog-body .blog-social-item.arcade-share { margin-right: 10px; }

/* 6. Blog pagination ------------------------------------------------------------------- */
#wsite-content .navigation.pagination { clear: both; padding: 20px 0; text-align: center; }
#wsite-content .navigation.pagination .page-numbers { display: inline-block; padding: 0 6px; }

/* 7. WordPress core classes ------------------------------------------------------------ */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 90%; text-align: center; }

/*
 * Fix of the original theme: between 1026 and 1180 pixels wide (small laptops, tablets held
 * sideways) the menu did not fit on one line and its last item ("Tech Tips") dropped onto the
 * page title. In that range the items are moved a little closer together; other widths are
 * unchanged.
 */
@media only screen and (min-width: 1026px) and (max-width: 1180px) {
	#multi-nav .wsite-menu-default > li > a { padding-left: 8px; padding-right: 8px; letter-spacing: 0.4px; }
}
