/*!
Theme Name: flamescience
Theme URI: http://underscores.me/
Author: Craig Allardyce
Author URI: https://allardyce.me
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: flamescience
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

flamescience is based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

*/

/* Spacing and layout tweaks */
.row {
    margin: 3rem 0;
}

/* Up to desktop */
@media screen and (max-width: 1088px) {
    .is-padded-mobile {
        padding: 0 1rem;
    }
}

/* tablet and larger */
@media screen and (min-width: 768px) {
    .is-pulled-right-tablet {
        float: right;
        padding-left: 1em !important;
    }
    .is-pulled-left-tablet {
        float: left;
        padding-right: 1em !important;
    }
    .content .is-pulled-left-tablet {
        margin-left: 0;
    }
}

.has-margin-bottom { margin-bottom: 1rem; }
.has-margin-top { margin-top: 1rem; }


/* Sticky Footer */
#page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}
#page #content {
    flex-grow: 1;
}
/* End Sticky Footer */


/* Reveal elements on scroll */
.reveal {
    transition: all 1s ease;
}
@media screen and (max-width: 768px) {
    .reveal {
        transition-delay: 0s !important;
    }
}
.reveal.reveal-fade {
    opacity: 0;
}
.reveal.reveal-slide {
    transform: translateY(10%)
}

/* End Reveal elements on scroll */


/* Misc */
.has-background-image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
}

.no-content figure {
	margin: 0 !important;
}

.hover-grow {
    display: inline-block;
}
.hover-grow:hover {
    transform: scale(1.1);
}




/* Gallery */

.gallery { display: flex; flex-wrap: wrap; margin-bottom: 1em; }

.gallery .gallery-item { margin: 2px; background: #f1f2f3; }

.gallery .gallery-item:hover { opacity: 0.9; }

.gallery .gallery-item img { user-select: none; width: 100%; vertical-align: middle; }

.gallery.square .gallery-item { overflow: hidden; width: 256px !important; height: 256px; }

.gallery.square .gallery-item img { object-fit: cover; object-position: 50% 50%; height: 100%; }

.gallery.justify::after { content: ''; flex-grow: 99999; min-width: calc(100vw / 4); }

@media (max-width: 460px) { .gallery.justify { flex-direction: column; }
  .gallery.justify a { width: 100% !important; } }
