@charset "utf-8";

/*//////////////////////////////////////////////////////////////////////////////

	Gutenberg・記事本文

//////////////////////////////////////////////////////////////////////////////*/


/*------------------------------------------------------------------------------

	変数

------------------------------------------------------------------------------*/

:root {
	/* ★common.css ＝ editor.css★ */
	--main-color: 31,39,116;
	--sub-color: 70,161,133;
	--accent-color: 245,203,50;
}

/*------------------------------------------------------------------------------

	エディター画面のみ

------------------------------------------------------------------------------*/

/* 全体
------------------------------------------------------------------------------*/

body#tinymce,
.editor-styles-wrapper,
.editor-styles-wrapper textarea  {
	/* ★common.css ＝ editor.css★ */
	line-height: 1.8;
	font-family: YuGothic,"游ゴシック","メイリオ",Meiryo,sans-serif,"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Osaka,verdana,"ＭＳ Ｐゴシック","MS PGothic",Sans-Serif;
	font-size: 16px;
	font-weight: 500;
	color: rgba(35,35,0,1);
  	-webkit-text-size-adjust: 100%;
	font-feature-settings: "palt";
}


/* 入力画面幅
------------------------------------------------------------------------------*/

/* ★入力画面幅パターン①★ */
.edit-post-visual-editor__post-title-wrapper,
.block-editor-block-list__layout,
html :where(.wp-block) {
	max-width: 900px;
}

.edit-post-visual-editor__post-title-wrapper,
.block-editor-block-list__layout {
	margin: 0 auto;
	width: 86%;
}


/* 画像
------------------------------------------------------------------------------*/

.editor-styles-wrapper .wp-block[data-align="left"],
.editor-styles-wrapper .wp-block[data-align="right"],
.editor-styles-wrapper .wp-block[data-align="left"] > *,
.editor-styles-wrapper .wp-block[data-align="right"] > * {
	float: none;
	height: auto;
}

.editor-styles-wrapper .wp-block[data-align="right"] > .wp-block-image {
	float: right;
	margin: 0;
}

.editor-styles-wrapper .wp-block[data-align="right"]:after {
	display: block;
	content: "";
	clear: both;
	height: 0;
}

.editor-styles-wrapper .wp-block-table table + figcaption {
	display: none;
}

.editor-styles-wrapper .wp-block {
	margin-left: 0;
}


/*------------------------------------------------------------------------------

	本文

------------------------------------------------------------------------------*/

/* マージン上下
------------------------------------------------------------------------------*/

/* hx */

.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6,
body.contents main h2,
body.archive main h2,
body.contents main h3,
body.contents main h4,
body.contents main h5,
body.contents main h6 {
	margin-top: 50px;
	font-weight: bold;
}

/* h2 */
.editor-styles-wrapper h2,
body.contents main h2,
body.archive main h2 {
	margin-top: 70px;
}

.editor-styles-wrapper h2,
body.contents main h2,
body.archive main h2 {
	margin-bottom: 48px;
}

/* h3・h4・h5・h6 */
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6,
.editor-styles-wrapper table,
body.contents main h3,
body.contents main h4,
body.contents main h5,
body.contents main h6,
body.contents main table {
	margin-bottom: 25px;
}

/* table・ul・ol・dl・figure */
.editor-styles-wrapper table,
.editor-styles-wrapper ul,
.editor-styles-wrapper ol,
.editor-styles-wrapper dl,
.editor-styles-wrapper figure,
body.contents main table,
body.contents main ul,
body.contents main ol,
body.contents main dl,
body.contents main figure {
	margin-top: 25px;
	margin-bottom: 25px;
}

@media screen and (max-width: 767px) {

/* hx */
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6,
body.contents main h2,
body.archive main h2,
body.contents main h3,
body.contents main h4,
body.contents main h5,
body.contents main h6 {
	margin-top: 7vw;
}

body.contents main h2.center {
	margin-top: 12vw;
}	
	
/* h2 */
.editor-styles-wrapper h2,
body.contents main h2,
body.archive main h2 {
	margin-bottom: 7vw;
}
	
/* h3・h4・h5・h6 */
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6,
body.contents main h3,
body.contents main h4,
body.contents main h5,
body.contents main h6 {
	margin-bottom: 4vw;
}
	
/* table・ul・ol・dl・figure */
.editor-styles-wrapper table,
.editor-styles-wrapper ul,
.editor-styles-wrapper ol,
.editor-styles-wrapper dl,
.editor-styles-wrapper figure,
body.contents main table,
body.contents main ul,
body.contents main ol,
body.contents main dl,
body.contents main figure {
	margin-top: 4vw;
	margin-bottom: 4vw;
}

}


/* 見出し
------------------------------------------------------------------------------*/

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
	line-height: 1.4;
}

/* h1の標準設定 */
.editor-styles-wrapper h1,
body.contents main .post h1 {
	padding-top: .05em;
	padding-bottom: 1.4em;
	border-bottom-width: 3px;
	border-bottom-style: solid;
	font-size: 2.625em;
	font-weight: bold;
	line-height: 1.3;
	word-break: normal;
}

.editor-styles-wrapper h1 {
	margin: 0;
}

body.contents main .post h1 {
	margin-bottom: 50px;
	padding-left: 2em;
}

/* ボーダーカラー */
body.contents main .purple header h1 {
	border-bottom-color: rgba(161,0,117,.3);
}

body.contents main .lightgreen header h1 {
	border-bottom-color: rgba(101,161,0,.3);
}

body.contents main .lightblue header h1 {
	border-bottom-color: rgba(0,154,161,.3);
}

body.contents main .brown header h1 {
	border-bottom-color: rgba(161,65,0,.3);
}

body.contents main .green header h1 {
	border-bottom-color: rgba(0,161,73,.3);
}

body.contents main .yellow header h1 {
	border-bottom-color: rgba(161,151,0,.3);
}

body.contents main .blue header h1 {
	border-bottom-color: rgba(0,107,160,1);
}

body.contents main .pink header h1 {
	border-bottom-color: rgba(163,59,179,1);
}

@media screen and (max-width: 1024px) {

body.contents main .post h1 {
	padding-left: 2.2em;
}

}

@media screen and (max-width: 900px) {
	
.editor-styles-wrapper h1,
body.contents main .post h1 { 
	font-size: 2em;
}
	
}

@media screen and (max-width: 767px) {
	
.editor-styles-wrapper h1,
body.contents main .post h1 {
	margin-bottom: 7vw;
	padding-top: .2em;
	font-size: 1.75em;
}

body.contents main .post h1 {
	padding-left: 13.5vw;
}	
	
}

/* h2 */
.editor-styles-wrapper h2,
body.contents main h2,
body.archive main h2 { 
	font-size: 2.625em;
	color: rgba(var(--main-color),1);
}

body.contents.recruit main h2,
body.contents.recruitment main h2,
body.contents.entry main h2,
body.contents.interview main h2 { 
	color: rgba(var(--sub-color),1);
}

#content main h2.center {
	text-align: center;
}

.editor-styles-wrapper h2::after,
body.contents main h2::after,
body.archive main h2::after {
	display: block;
	content: '';
	width: 120px;
	aspect-ratio: 24/1;
	margin-top: .5em;
	background-image: url("../img/icon_square.svg");
	background-repeat: no-repeat;
	background-size: cover;
}

#content main h2.center::after {
	margin-left: auto;
	margin-right: auto;
}

@media screen and (max-width: 900px) {
	
.editor-styles-wrapper h2,
body.contents main h2,
body.archive main h2 { 
	font-size: 2em;
}
	
}

@media screen and (max-width: 767px) {
	
.editor-styles-wrapper h2,
body.contents main h2,
body.archive main h2 { 
	font-size: 1.75em;
}
	
}


/* h3 */
.editor-styles-wrapper h3,
body.contents main h3 {
	position: relative;
	padding-left: 1.2em;
	font-size: 1.875em;
}

.editor-styles-wrapper h3::before,
body.contents main h3::before {
	content: '';
	display: block;
	position: absolute;
	top: .1em;
	left: 0;
	width: 25px;
	aspect-ratio: 5/7;
	background-image: url("../img/icon_circle.svg");
	background-repeat: no-repeat;
	background-size: cover;
}

@media screen and (max-width: 900px) {

.editor-styles-wrapper h3,
body.contents main h3 {
	font-size: 1.8em;
}
	
.editor-styles-wrapper h3::before,	
body.contents main h3::before {
	top: 0;
	width: 25px;
	aspect-ratio: 5/7;
}	

}

@media screen and (max-width: 767px) {
	
.editor-styles-wrapper h3,
body.contents main h3 { 
	padding-left: 8vw;
	font-size: 1.5em;
}

.editor-styles-wrapper h3::before,	
body.contents main h3::before {
	top: -.5vw;
	width: 5.5vw;
}	
	
}

/* h4 */
.editor-styles-wrapper h4,
body.contents main h4 {
	padding-bottom: .5em;
	font-size: 1.25em;
	border-bottom: 1px solid rgba(51,51,51,1);
}

/* h5 */
.editor-styles-wrapper h5,
body.contents main h5 {
	font-size: 1.125em;
}

/* h6 */
.editor-styles-wrapper h6,
body.contents main h6 {
	font-size: .875em;
	font-style: italic;
}


/* 段落
------------------------------------------------------------------------------*/

.editor-styles-wrapper p,
body.contents main p {
	line-height: 2.25;
}

body.contents main .has-text-align-right {
	text-align: right;
}

body.contents main .has-text-align-center {
	text-align: center;
}

body.contents main .has-text-align-left {
	text-align: left;
}


/* リスト
------------------------------------------------------------------------------*/

.editor-styles-wrapper li,
body.contents main li {
	line-height: 1.8;
}


/* テーブル
------------------------------------------------------------------------------*/

.editor-styles-wrapper .wp-block-table thead,
body.contents main .wp-block-table thead{
    border-bottom: none;
}

.editor-styles-wrapper th,
.editor-styles-wrapper td,
body.contents main th,
body.contents main td {
	padding: 1.5em 1em;
	border: 1px solid #FFF;
}

.editor-styles-wrapper td,
body.contents main td {
	background-color: #FFF;
}

.editor-styles-wrapper tr:nth-child(even) td,
body.contents main tr:nth-child(even) td {
	background-color: rgba(239,241,247,1);
} 

body.contents.recruit main tr:nth-child(even) td,
body.contents.recruitment main tr:nth-child(even) td,
body.contents.interview main tr:nth-child(even) td {
	background-color: rgba(238,247,244,1);
}

.editor-styles-wrapper tbody tr:first-child th,
.editor-styles-wrapper tbody tr:first-child td,
body.contents main tbody tr:first-child th,
body.contents main tbody tr:first-child td {
	border-top: 1px solid rgba(var(--main-color),1);
}
body.contents.recruit main tbody tr:first-child th,
body.contents.recruitment main tbody tr:first-child th,
body.contents.interview main tbody tr:first-child th,
body.contents.recruit main tbody tr:first-child td,
body.contents.recruitment main tbody tr:first-child td,
body.contents.interview main tbody tr:first-child td {
	border-top: 1px solid rgba(var(--sub-color),1);
}

body.contents main thead th,
body.contents main tbody th,
.editor-styles-wrapper thead th:first-child,
.editor-styles-wrapper tbody td:first-child,
.editor-styles-wrapper tbody tr:first-child td:first-child,
.editor-styles-wrapper tbody tr:first-child th:first-child,
body.contents main thead th:first-child,
body.contents main tbody td:first-child,
body.contents main tbody tr:first-child td:first-child,
body.contents main tbody tr:first-child th:first-child {
	text-align: center;
	vertical-align: top;
}

.editor-styles-wrapper thead th:first-child,
.editor-styles-wrapper tbody td:first-child,
.editor-styles-wrapper tbody tr:first-child td:first-child,
.editor-styles-wrapper tbody tr:first-child th:first-child,
body.contents main thead th:first-child,
body.contents main tbody td:first-child,
body.contents main tbody tr:first-child td:first-child,
body.contents main tbody tr:first-child th:first-child {
	min-width: 8em;
}

.editor-styles-wrapper th,
.editor-styles-wrapper tr td:first-of-type,
body.contents main tbody th,
body.contents main tr :first-child:not(a,span,sup,sub,ul,ol,li) {
	font-weight: bold;
	background-color: rgba(216,221,234,1);
}
body.contents.recruit main tbody th,
body.contents.recruitment main tbody th,
body.contents.interview main tbody th,
body.contents.recruit main tr :first-child:not(a,span,sup,sub,ul,ol,li),
body.contents.recruitment main tr :first-child:not(a,span,sup,sub,ul,ol,li),
body.contents.interview main tr :first-child:not(a,span,sup,sub,ul,ol,li) {
	background-color: rgba(227,241,237,1);
}

.editor-styles-wrapper thead tr th,
body.contents main thead tr th {
	background-color: rgba(var(--main-color),1)!important;
	color: #FFF;
}

body.contents.recruit main thead tr th,
body.contents.recruitment main thead tr th,
body.contents.interview main thead tr th {
	background-color: rgba(var(--sub-color),1)!important;
}

.editor-styles-wrapper table ul,
.editor-styles-wrapper table ol,
body.contents main table ul,
body.contents main table ol {
	margin-top: 0;
	margin-bottom: 0;
}

.editor-styles-wrapper table ul li,
.editor-styles-wrapper table ol li,
body.contents main table ul li,
body.contents main table ol li {
	line-height: 1.4;
}


/* テーブル（管理画面用）
------------------------------------------------------------------------------*/

.editor-styles-wrapper .wp-block-table {
	width: 100%;
}

.editor-styles-wrapper .wp-block-table .has-fixed-layout {
	table-layout: auto;
}


/* アンカー
------------------------------------------------------------------------------*/

.editor-styles-wrapper a:not(a[href^="tel:"]),
body.contents main a:not(a[href^="tel:"]) {
	color: rgba(var(--main-color),1);
}


/* 画像
------------------------------------------------------------------------------*/

.editor-styles-wrapper figure.wp-block,
body.contents main figure.wp-block-image,
body.contents main .wp-block-image figure {
	display: table;
}

.editor-styles-wrapper figure.wp-block figcaption,
body.contents main figure.wp-block-image figcaption,
body.contents main .wp-block-image figure figcaption {
	display: table-caption;
	caption-side: bottom;
	text-align: center;
}

body.contents main .wp-block-image .aligncenter,
body.contents main .wp-block-image.aligncenter {
	margin-right: auto;
	margin-left: auto;
}


.editor-styles-wrapper .is-layout-flow > .wp-block[data-align="right"] figure,
.editor-styles-wrapper .is-layout-flow > .wp-block.alignright,
body.contents main .wp-block-image .alignright,
body.contents main .wp-block-image.alignright {
	float: none;
	margin-right: 0;
	margin-left: auto;
}

.editor-styles-wrapper .is-layout-flow > .wp-block[data-align="left"] figure,
.editor-styles-wrapper .is-layout-flow > .wp-block.alignleft,
body.contents main .wp-block-image .alignleft,
body.contents main .wp-block-image.alignleft {
	float: none;
	margin-right: auto;
	margin-left: 0;
}

body.contents main figure img {
	height: auto;
}


/* ドロップキャップ打ち消し
------------------------------------------------------------------------------*/

.editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter {
	float: none;
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
	margin: 0;
	text-transform: none;
	font-style: inherit;
}


/* カラー設定
------------------------------------------------------------------------------*/

body.contents main .has-inline-color.has-important-color,
body.contents main .has-inline-color.has-important-color a,
body.contents main .has-text-color.has-important-color,
body.contents main .has-text-color.has-important-color a,
.editor-styles-wrapper .has-inline-color.has-important-color,
.editor-styles-wrapper .has-inline-color.has-important-color a,
.editor-styles-wrapper .has-text-color.has-important-color,
.editor-styles-wrapper .has-text-color.has-important-color a {
	background: none;
	color: rgba(180,0,20,1);
}

body.contents main .has-inline-color,
.editor-styles-wrapper .has-inline-color,
.editor-styles-wrapper .has-important-background-color,
.editor-styles-wrapper .has-background.has-important-background-color  {
	background-color: transparent !important;
}

body.contents main .has-inline-color,
body.contents main .has-background.has-important-background-color,
.editor-styles-wrapper .has-inline-color,
.editor-styles-wrapper .has-background.has-important-background-color {
	display: inline;
	background:linear-gradient(transparent 70%, rgba(180,0,20,.2) 70%);
	color: inherit;
}

.editor-styles-wrapper .has-background {
	padding: 0;
}


/* 本文のスタイルを継承したくないものをリセット
------------------------------------------------------------------------------*/

/* 記事内アーカイブ部分 */
body.contents main .article h2,
body.contents main .category h2,
body.contents main .year h2 {
	margin: 0;
	padding: 0;
	font-size: 1em;
	background: none;
	border: none;
}


/* 埋め込み
------------------------------------------------------------------------------*/

.iframe_content {
	position: relative;
	width: 100%;
	margin: 2em 0;
}

iframe.instagram-media {
	margin: 2em auto !important;
}

.twitter-tweet,
.wp-block-embed.wp-block-embed-twitter,
.iframe_content.youtube,
.iframe_content.facebook {
	margin-right: auto;
	margin-left: auto;
}

.iframe_content.youtube {
	max-width: 600px !important;
}

.iframe_content.youtube iframe,
.iframe_content.gmap iframe {
	width: 100%;
	height: 100%;
}

.fb_iframe_widget_fluid span,
.iframe_content.facebook,
.post .fb_iframe_widget {
	background-color: #FFF;
}

.iframe_content.facebook {
	width: max-content;
}

.fb_iframe_widget_fluid span {
    max-width: 100% !important;
}

.iframe_content.youtube,
.iframe_content.gmap {
     position: relative;
	 aspect-ratio: 16 / 9;
     overflow: hidden;
}

@media screen and (max-width: 900px){

.iframe_content.gmap {
	 aspect-ratio: 4 / 3;
}

}

@media screen and (max-width: 767px){

.iframe_content.gmap {
	 aspect-ratio: 1 / 1;
}

.iframe_content.facebook {
	width: auto;
}

}


/* ギャラリー（管理画面用）
------------------------------------------------------------------------------*/

.editor-styles-wrapper .wp-block-gallery {
	display: flex !important;
	justify-content: flex-start !important;
	align-items: flex-start !important;
	flex-wrap: wrap !important;
	gap: 0 !important;
	--wp--style--unstable-gallery-gap: 0 !important;
	width: 100% !important;
}

.editor-styles-wrapper .wp-block-gallery figure {
	flex-grow: 0 !important;
	margin: 0 3% 25px 0 !important;
}

.editor-styles-wrapper .wp-block-gallery figure figcaption {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	bottom: auto !important;
	background: none !important;
	color: inherit !important;
}

/* 1-2 */
.editor-styles-wrapper .wp-block-gallery.columns-default figure,
.editor-styles-wrapper .wp-block-gallery.columns-2 figure {	width: 48.5% !important;}
.editor-styles-wrapper .wp-block-gallery.columns-2 figure:nth-child(2n) { margin-right: 0 !important;}

/* 3 */
.editor-styles-wrapper .wp-block-gallery.columns-3 figure { width: calc(94% / 3) !important;}
.editor-styles-wrapper .wp-block-gallery.columns-3 figure:nth-child(3n) { margin-right: 0 !important;}

/* 4 */
.editor-styles-wrapper .wp-block-gallery.columns-4 figure { width: calc(91% / 4) !important;}
.editor-styles-wrapper .wp-block-gallery.columns-4 figure:nth-child(4n) { margin-right: 0 !important;}

/* 5 */
.editor-styles-wrapper .wp-block-gallery.columns-5 figure { width: calc(88% / 5) !important;}
.editor-styles-wrapper .wp-block-gallery.columns-5 figure:nth-child(5n) { margin-right: 0 !important;}

/* 6 */
.editor-styles-wrapper .wp-block-gallery.columns-6 figure { width: calc(85% / 6) !important;}
.editor-styles-wrapper .wp-block-gallery.columns-6 figure:nth-child(6n) { margin-right: 0 !important;}

/* 7 */
.editor-styles-wrapper .wp-block-gallery.columns-7 figure { width: calc(82% / 7) !important;}
.editor-styles-wrapper .wp-block-gallery.columns-7 figure:nth-child(7n) { margin-right: 0 !important;}

/* 8 */
.editor-styles-wrapper .wp-block-gallery.columns-8 figure { width: calc(79% / 8) !important;}
.editor-styles-wrapper .wp-block-gallery.columns-8 figure:nth-child(8n) { margin-right: 0 !important;}

/* 注意事項 */
.components-panel__body:not(.blocks-table-settings) > div.components-base-control.components-range-control::after {
	content: "ギャラリーの追加時に並べたい個数がうまく認識されない場合があります。上部のカラムの数値を増減して調整してください。（写真が横並びになる最大数：8）";
	display: block;
	margin-top: 2em;
	padding: 1.25em;
	background-color: rgba(0,0,0,.05);
	white-apace: pre;
}

@media screen and (max-width: 767px){

.editor-styles-wrapper .wp-block-gallery.columns-default figure {
	width: 48.5% !important;
}

.editor-styles-wrapper .wp-block-gallery figure:nth-child(2n) {
	margin-left: 0 !important;
}

}


/* ギャラリー
------------------------------------------------------------------------------*/

body.contents main .custom_original_gallery {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 0;
	margin-bottom: 0;
}

body.contents main .custom_original_gallery figure {
	margin: 0 3% 3% 0;
}

/* 1-2 */
body.contents main .custom_original_gallery.columns-default figure,
body.contents main .custom_original_gallery.columns-2 figure { width: 48.5%;}
body.contents main .custom_original_gallery.columns-default figure:nth-child(2n),
body.contents main .custom_original_gallery.columns-2 figure:nth-child(2n) { margin-right: 0;}

/* 3 */
body.contents main .custom_original_gallery.columns-3 figure { width: calc(94% / 3);}
body.contents main .custom_original_gallery.columns-3 figure:nth-child(3n) { margin-right: 0;}

/* 4 */
body.contents main .custom_original_gallery.columns-4 figure { width: calc(91% / 4);}
body.contents main .custom_original_gallery.columns-4 figure:nth-child(4n) { margin-right: 0;}

/* 5 */
body.contents main .custom_original_gallery.columns-5 figure { width: calc(88% / 5);}
body.contents main .custom_original_gallery.columns-5 figure:nth-child(5n) { margin-right: 0;}

/* 6 */
body.contents main .custom_original_gallery.columns-6 figure { width: calc(85% / 6);}
body.contents main .custom_original_gallery.columns-6 figure:nth-child(6n) { margin-right: 0;}

/* 7 */
body.contents main .custom_original_gallery.columns-7 figure { width: calc(82% / 7);}
body.contents main .custom_original_gallery.columns-7 figure:nth-child(7n) { margin-right: 0;}

/* 8 */
body.contents main .custom_original_gallery.columns-8 figure { width: calc(79% / 8);}
body.contents main .custom_original_gallery.columns-8 figure:nth-child(8n) { margin-right: 0;}


@media screen and (max-width: 767px){

body.contents main .custom_original_gallery.columns-3 figure,
body.contents main .custom_original_gallery.columns-3 figure:nth-child(n),
body.contents main .custom_original_gallery.columns-4 figure,
body.contents main .custom_original_gallery.columns-4 figure:nth-child(n),
body.contents main .custom_original_gallery.columns-5 figure,
body.contents main .custom_original_gallery.columns-5 figure:nth-child(n),
body.contents main .custom_original_gallery.columns-6 figure,
body.contents main .custom_original_gallery.columns-6 figure:nth-child(n),
body.contents main .custom_original_gallery.columns-7 figure,
body.contents main .custom_original_gallery.columns-7 figure:nth-child(n),
body.contents main .custom_original_gallery.columns-8 figure,
body.contents main .custom_original_gallery.columns-8 figure:nth-child(n) {
	 width: 48.5%;
	 margin-right: 3%;
	 margin-bottom: 3%;
}

body.contents #content main .custom_original_gallery figure:nth-child(2n) {
	margin-right: 0;
}

}
