/* --------------------
 * CSS Reset from
 * https://meyerweb.com/eric/tools/css/reset/
 * v2.0 | 20110126
 * License: none (public domain)
 * -------------------- */

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align:baseline
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display:block
}

body {
    line-height:1
}

ol, ul {
    list-style:none
}

blockquote, q {
    quotes:none
}

blockquote:before, blockquote:after, q:before, q:after {
    content: '';
    content:none
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

/* --------------------
   Other Resets
 * -------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
ul {
    padding-inline-start: 0;
}
#root, #__next {
  isolation: isolate;
}

/* --------------------
   Debugging aids
   - change width to turn on
   -------------------- */

@media (width < 100px) {
    body {
        border: 1px dotted red;
    }
    header, main, footer {
        border: 1px dashed blue;
    }
    nav {
        border: 1px dotted green;
    }
}

/* --------------------
   Content Transitions
   -------------------- */
@view-transition {
  navigation: auto;
}
.photo-transition {
    view-transition-name: photo-transition;
}
/* Old stuff going out */
::view-transition-old(photo-transition) {
  animation: fade 0.2s linear forwards;
}

/* New stuff coming in */
::view-transition-new(photo-transition) {
  animation: fade 0.3s linear reverse;
}

@keyframes fade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

header + nav {
    display: block;
}

#b2 {
    display:none;
}
#b1:hover ~ #b2 { display:block }

@starting-style {
    header + nav {
        display: none;
    }
}

/* --------------------
   font setup
   -------------------- */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    src: local('DM Sans'),
         url('https://fonts.cdnfonts.com/s/29932/DMSans-Regular.woff')
            format('woff');
}

/* --------------------
   Primary CSS
   -------------------- */
a {
    text-decoration: none;
    color: #4983c5;
}

body {
    /* Prevent shifts that can occur when the scrollbar
     * appears on some pages and not on others
     */
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* Appearance */
    background-color : #fff;

    /* Font */
    line-height: 1.5;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    
    /* Size ratios
    h1:    40px		200%
    h2:    31.748px	158.74%
    h3:	   25.1984px	125.99%
    p:     20px		100%
    small: 15.874px	79.35%
    */
}

header, main, footer {
    width: 80%;
}

main #content {
    width: 60%;
    /* margin: auto; */
}
/* --------------------
   Header
   (title and site menu)
   -------------------- */
header {
    display: flex;
    border-bottom: 1px dotted black;
    margin-top: 15px;
}

.site-title, .site-menu {
    display: block;
    font-size: 200%;
}

header a {
    color: black;
}

nav {                    /* <nav> */
    margin-left: auto;
}
nav details {
    cursor: pointer;
    user-select:none;
}
nav details:first-of-type summary::marker,
:is(::-webkit-details-marker) {
    font-weight: bold;
}
nav details summary {
     text-align: right;
}
nav details ul{
    list-style: none;
    margin-left: 31px;
    margin-top: -5px;
    font-size: 79.35%;
    text-transform: lowercase;
}
nav details li {
    border-top: 1px dotted black;
}
nav details li.active {
    list-style-type: disc;
}
nav details li:hover {
    list-style-type: circle;
}

/* --------------------
   Main
   (primary page content)
   -------------------- */

main .subhead {
    margin-top: 5px;
    /* margin-bottom: -10px; */
}
main .subhead h1, main .subhead h2 {
    font-size: 158.74%;
}
main .subhead>*:first-child {
    margin-bottom: 0;
}
main .subhead>*:last-child {
    font-size: 158.74%;
    margin-top: 5px;
}
main .content {
    margin-top: 5px;
}

.photo-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.nav-arrows {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}
.nav-arrows a {
    display: block;
}

.nav-arrows a, .nav-arrows a:visited {
    color: #4983c5;
}
.nave-arrows a:hover {
    color: black;
}

.gallery-frame {
    max-width: 100%;
    font-weight: bold;
}
.gallery-frame a {
    text-decoration: none;
}
.gallery-frame a {
    color: #000;
}

img {
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}
a img:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

#gallery, #collection {
    width: 100%;
    margin: auto;
    /* margin-top: 40px; */
    margin-bottom: 80px;
}

.gallery .photos, .collection .galleries {
    display: grid;
    grid-template-columns: repeat(auto-fill,
				  minmax(200px, 1fr));
    grid-column-gap: 24px;
    grid-row-gap: 32px;
}

#content h1 {
    font-size: 200%;
}
#content h2 {
    font-size: 158.74%;
}
#content h3 {
    font-size: 125.99%;
}
#content h4 {
    font-size: 100%;
}
#content p {
    margin-top: 15px;
    font-size: 100%;
}

@media(width < 900px) {
    main #content {
	width: 100%;
	margin: auto;
    }
}

@media(width < 500px) {
    body {
        font-size: 16px;
	width: 100vw;
    }
    header, main, footer {
	width: 90%;
    }
    header .h1 {
	font-size: 158.74%;
	font-weight: bold;
    }
    main .subhead h1, main .subhead h2 {
	font-size: 125.99%;
    }
}
