@import '../../../assets/public/css/modules/utilities/variables'; @import '../../../assets/public/css/modules/utilities/functions'; .alignleft { .wp-block-image & { float: none; margin: 0 auto; @media only screen and (min-width: $tablet) { float: left; margin: mrem(0.25) mrem() mrem(0.5) 0; } @media only screen and (min-width: $tablet__rotate) { .no-sidebar & { margin-left: -13.6%; } .fw-builder.no-sidebar & { margin-left: 0; } } @media only screen and (min-width: $laptop) { margin-left: -7%; } img { max-width: 100%; } } &.wp-block-pullquote { float: none; width: 100%; max-width: none; margin: 0 0 mrem(); @media only screen and (min-width: $tablet) { float: left; width: calc( 50% - #{mrem()} ); margin: mrem(0.25) mrem() mrem(0.5) 0; } @media only screen and (min-width: $tablet__rotate) { max-width: none; .no-sidebar & { margin-left: -13.6%; } .fw-builder.no-sidebar & { margin-left: 0; } } @media only screen and (min-width: $laptop) { margin-left: -7%; } } } .alignright { .wp-block-image & { float: none; margin: 0; @media only screen and (min-width: $tablet) { float: right; margin: mrem(0.25) 0 mrem(0.5) mrem(); } @media only screen and (min-width: $tablet__rotate) { .no-sidebar & { margin-right: -13.6%; } .fw-builder.no-sidebar & { margin-right: 0; } } @media only screen and (min-width: $laptop) { margin-right: -7%; } img { max-width: 100%; } } &.wp-block-pullquote { float: none; margin: 0 0 mrem(); @media only screen and (min-width: $tablet) { float: right; width: calc( 50% - #{mrem()} ); margin: mrem(0.25) 0 mrem(0.5) mrem(); } @media only screen and (min-width: $tablet__rotate) { max-width: none; .no-sidebar & { margin-right: -13.6%; } .fw-builder.no-sidebar & { margin-right: 0; } } @media only screen and (min-width: $laptop) { margin-right: -7%; } } } .alignfull, .alignwide { position: relative; left: 50%; transform: translateX(-50%); img { width: 100%; display: block; } } .alignfull { max-width: none; width: 100vw; @media only screen and (min-width: $tablet__rotate) { width: 100%; .no-sidebar & { max-width: none; width: 100vw; } } @media only screen and (min-width: $laptop) { width: 114%; } } .alignwide { max-width: 100%; @media only screen and (min-width: $tablet__rotate) { max-width: none; .no-sidebar & { width: 1.272 * $line__length; } .fw-builder.no-sidebar & { width: 100%; } } @media only screen and (min-width: $laptop) { width: 114%; } } .wp-block-gallery, .wp-block-image, .wp-block-embed { margin-bottom: mrem(); } .wp-block-audio { margin-bottom: mrem(); audio { display: block; width: 100%; } &:empty { display: none; } } .wp-block-quote { & > p { margin-bottom: mrem(0.5); } } ul.wp-block-gallery { display: block; width: calc( 100% + 4px ); margin-left: -2px; li.blocks-gallery-image, li.blocks-gallery-image:first-child, li.blocks-gallery-item, li.blocks-gallery-item:first-child { float: left; margin: 0; padding: 2px; border-top-width: 0; } li.blocks-gallery-image, li.blocks-gallery-item { width: 50%; } &.columns-1 .blocks-gallery-image, &.columns-1 .blocks-gallery-item { width: 100%; } .widget & { margin-bottom: mrem(); } &.alignwide { @media only screen and (min-width: $tablet__rotate) { margin-left: 0; .no-sidebar & { width: calc( #{1.272 * $line__length} + 4px ); } } @media only screen and (min-width: $laptop) { width: calc( 114% + 4px ); } } &.alignfull { @media only screen and (min-width: $tablet__rotate) { .no-sidebar & { width: 100vw; margin-left: 0; } } @media only screen and (min-width: $tablet__rotate) { width: 114%; } } li.blocks-gallery-item figure, li.blocks-gallery-image figure { position: relative; a, img { position: absolute; left: 0; right: 0; top: 0; bottom: 0; width: 100%; height: 100%; } img { object-fit: cover; } &:after { content: ''; display: block; width: 100%; padding-top: 66.666%; } } &:not(.is-cropped) { li.blocks-gallery-item { a, img { position: static; } figure { &:after { display: none; } } } } &:after { display: table; content: ''; clear: both; } } p.has-drop-cap:not(:focus)::first-letter { font-size: 4.5em; } .wp-block-cover-image { margin-bottom: mrem(); @media only screen and (min-width: $tablet__rotate) { min-height: 515px; } } .wp-block-columns { &.has-2-columns { display: block; .wp-block-column { @media only screen and (min-width: $tablet) { float: left; width: calc( 50% - 15px ); margin-right: 30px; &:nth-child(2n) { margin-right: 0; margin-left: 0; } } } } &:after { display: table; content: ''; clear: both; } } @media only screen and (min-width: $tablet) { .wp-block-gallery.columns-3 .blocks-gallery-image, .wp-block-gallery.columns-3 .blocks-gallery-item { margin-right:0; width: 33.33333%; } .wp-block-gallery.columns-4 .blocks-gallery-image, .wp-block-gallery.columns-4 .blocks-gallery-item { margin-right: 0; width: 25%; } .wp-block-gallery.columns-5 .blocks-gallery-image, .wp-block-gallery.columns-5 .blocks-gallery-item { margin-right: 0; width: 20%; } .wp-block-gallery.columns-6 .blocks-gallery-image, .wp-block-gallery.columns-6 .blocks-gallery-item { margin-right:0; width: 16.66667%; } .wp-block-gallery.columns-7 .blocks-gallery-image, .wp-block-gallery.columns-7 .blocks-gallery-item { margin-right: 0; width: 14.28571%; } .wp-block-gallery.columns-8 .blocks-gallery-image, .wp-block-gallery.columns-8 .blocks-gallery-item { margin-right: 0; width: 12.5%; } } .wp-block-button .wp-block-button__link { display: inline-block; position: relative; border: none; border-radius: 25px; letter-spacing: 0.046875em; padding: mem(0.5) mem(0.75); text-transform: uppercase; font-size: 0.8695rem; line-height: 1; font-family: inherit; font-weight: $bold-font-weight; text-decoration: none; transition: box-shadow 0.15s linear; &:hover, &:focus { border: none; cursor: pointer; box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.2); } &:focus { outline: thin dotted; outline-offset: -4px; } } .wp-block-table { &.aligncenter, &.alignleft, &.alignright { display: table; width: 100%; } } .wp-block-pullquote { margin: 0 0 mrem(); } .wp-block-gallery .blocks-gallery-item figure { position: relative; }