/*
Theme Name:      WP Open Data Toronto
Description:     Theme created to integrate CKAN with WP
Authors:          Sidra Mahmood, Yizhao Tan, Carlos Hernandez, Adam Foord
Template:        wp-bootstrap-starter
-------------------------------------------------------------- */

/* Resets */

body,
p,
html,
*,
a {
  font-family: "Roboto";
}

h1 {
  display: block;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Montserrat;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 16px;
}

h5 {
  font-size: 14px;
}

ul li a:link,
ul li a:visited {
  color: #31708f;
}

p,
p ul li,
p ol li,
ul li,
ol li {
  font-size: 16px;
}


/***************************************************************
****************************************************************
Global general styles
****************************************************************
***************************************************************/

h1 {
  margin: 0;
}

h2 {
  margin: 0 0 15px 0;
}

hr {
  margin: 0px 0 40px 0;
  padding: 0;
  border: 0;
}

main.site-content {
  padding: 20px 0 60px 0;
  box-shadow: 0px 3px 12px #ccc;
  margin: 0 0 0px 0;
}

#content i.fa {
  font-size: 24px;
  color: #666666;
  margin: 0 10px 0px 0px;
  display: inline-block;
}

a span.fa.fa-info-circle {
  color: #808080;
  font-size: 16px;
  padding: 0 0.5rem;
}


/**************************************
Buttons and links
**************************************/

.btn {
  background-color: #31708f;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 13px;
  font-family: Montserrat;
  padding: 10px 21px;
  border-radius: 0;
  border: 2px solid #31708f;
}

.btn-primary {
  border-color: none;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 13px;
  padding: 10px 21px;
}

.btn-secondary {
  border-color: none;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 13px;
  padding: 10px 21px;
}

.btn-tertiary {
  background-color: #ffffff;
  color: #31708F;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 8px;
  border: 3px solid #31708f;
}

.btn:hover,
.btn:focus {
  border: inset 2px solid #31708f !important;
  color: #31708f;
  background: #ffffff !important;
}

.btn-sm {
  padding: 7px 12px;
}

.external-link-icon {
  background: url("img/external-link.svg") no-repeat center center;
  background-color: transparent;
  border: none;
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: text-bottom;
  margin: 0 4px;
}


/**************************************
Forms and inputs
**************************************/

.form-inline .input-group {
  width: auto;
  margin: 0 auto;
}

nav.navbar input.form-control {
  width: 100% !important;
  margin: 0 0 7px 0 !important;
  border-radius: 0;
}

nav form.form-inline button.btn {
  width: 100%;
}

form.orderby-form {
  margin-bottom: 20px;
}

.order-by-control {
  display: inline-block;
  margin-left: 5px;
}

.order-by-control select {
  display: inline-block;
}

form.dataset-filter {
  width: 100%;
  margin: 10px 0 10px 0;
}

#results-count,
label.input-label {
  padding: 0;
  margin: 0 0 15px 0;
  padding-top: 13px;
  padding-left: 0;
  text-transform: uppercase;
  font-weight: bold;
  color: #175787;
  font-family: Montserrat !important;
}

.pagination {
  margin-top: 5px;
}



/***************************************************************
****************************************************************
Header, Footer, Navigation, Sidebar
****************************************************************
***************************************************************/


/**************************************
COT header
**************************************/

#super-header {
  background: #165788;
  height: 60px;
  margin: 0;
}

#super-header img {
  margin-top: 13px;
}


/**************************************
Main navigation
**************************************/

#masthead {
  box-shadow: none;
  margin-bottom: 0;
  font-family: Roboto;
  font-weight: 400;
}

#masthead .navbar-nav > li > a {
  color: #2c2c2c;
}

#masthead .navbar-nav > li > a:hover,
#masthead .navbar-nav > li > a:focus {
  color: #000000;
  text-decoration: underline;
}

a.navbar-brand {
  font-family: Montserrat;
  font-weight: 600;
  color: #165787;
  margin-right: 30px;
  text-transform: uppercase;
}

ul#menu-homepage li.menu-item {
  border: 1px solid #e1e1e1;
  text-align: center;
  margin: -1px 0px 0px 0px;
}

button.navbar-toggler {
  position: absolute;
  right: 0;
}


/**************************************
Breadcrumb
**************************************/

.breadcrumb {
  padding: 0;
  margin-bottom: 20px;
  height: 52px;
  width: 100%;
  overflow-y: visible;
  list-style: none;
  background: 0;
  border-radius: 0;
  font-family: Montserrat !important;
  text-transform: uppercase;
  font-size: 14px;
  color: #666;
}

a.breadcrumb-item {
  font-family: Montserrat;
  font-weight: 500;
}


/**************************************
Footer
**************************************/

footer {
  background: #165787;
  text-align: center;
}

footer .copyright {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
  color: #ffffff;
}

footer .copyright a:link {
  color: #ffffff;
  font-family: Roboto;
  padding: 14px 0 0 0;
  display: block;
}

#footer-links {
  padding: 20px 0 10px 0;
  background: #f4f4f4;
}

#footer-links a i.fa {
  color: #676767;
  font-size: 33px;
  text-align: center;
  display: inline-block;
  padding: 0 20px 0 0;
}


/**************************************
Share Tools
**************************************/

#sharebutton {
  position: static;
  min-width: 112px;
  min-height: 42px;
  margin-top: 10px;
}

.sharebox {
  position: absolute;
  margin: 7px 0 0 0;
  padding: 4px 12px 0 12px;
  width: 145px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  text-align: left;
  z-index: 99999;
  left: 50%;
  transform: translateX(-50%);
}

.sharebox .share-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sharebox .share-list li {
  padding: 9px 5px;
  border-bottom: 1px solid #ddd;
}

.sharebox .share-list li :last-child {
  border-bottom: none;
}

.sharebox .share-list li a {
  text-decoration: none;
}

.sharebox .share-list img {
  margin-right: 5px;
  width: 25px;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}


/**************************************
Field Quality
**************************************/

div.gold:before {
  color: #f0ad4e !important;
}

div.silver:before {
  color: #777777 !important;
}

div.bronze:before {
  color: #8a6d3b !important;
}



/**********************************************
Tooltips - NON-BOOTSTRAP, CUSTOM IMPLEMENTATION
**********************************************/

.tooltip-wrapper {
  position: relative;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
}

.tooltip-wrapper span.fa {
  pointer-events: none;
}

.tooltip-wrapper a {
  display: inline-block;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
}

.tooltip-od {
  box-sizing: border-box;
  font-size: 12px;
  position: absolute;
  background: #000000;
  color: #ffffff;
  width: 300px;
  margin-right: -340px;
  padding: 8px 6px;
  z-index: 70;
  top: -25px;
  left: -136px;
  pointer-events: none;
}

.tooltip-od ul {
  margin-bottom: 0;
}
.tooltip-od ul li {
  font-size: 12px;
}

.tooltip-od:after {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #000000;
  top: 100%;
  position: absolute;
  bottom: 0;
  height: 0;
  width: 0;
  left: 141px;
  content: "";
}

.visible { display: block; }

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

    .tooltip-od {
        left: -86px;
        width: 200px;
        max-width: 200px;
    }

    .tooltip-od:after {
      left: 91px;
    }

}



/**************************************
Code tables (highlight.js)
**************************************/

.hljs-ln td {
  padding: 0px 14px 2px 0;
}

td.hljs-ln-numbers {
  color: #bbbbbb;
}

table.hljs-ln tr:nth-child(even) {
  background: #f4f4f4;
}



/***************************************************************
****************************************************************
Page specific styles
****************************************************************
***************************************************************/


/**************************************
Home page
**************************************/

.jumbotron {
  padding: 40px 0;
  width: 100% !important;
  margin-left: 0px;
  border-radius: 0;
  background-size: cover;
  background-position: 50% 50%;
}

.jumbotron h1 {
  padding: 0px 30px;
  color: #fff;
  text-align: center;
  text-shadow: 2px 2px 2px #222;
}

.home-story-item {
  background-size: cover;
  background-position: 50% 50%;
  margin: 25px 0;
}

.home-story-item h2 {
  color: #ffffff;
}

.home-story-item h3 {
  color: #ffffff;
}

.home-story-item p {
  color: #ffffff;
}

.home-story-item .jumbotron {
  padding: 80px 20px;
  margin: 0;
}

section#home-about {
  margin: 15px 0 20px 0;
  text-align: center;
}

section#home-recent-datasets {
  margin: 15px 0 20px 0;
  text-align: center;
}

section#home-recent-datasets .newsfeed {
  text-align: left;
}

.newsfeed {
  margin: 0 0 20px 0;
}

.newsfeed a.row {
  font-family: "Roboto";
  width: 100%;
  border-bottom: 1px solid #ddd;
  padding: 6px 0;
  margin-left: 0;
}

.newsfeed a.row:nth-last-child(1) {
  border-bottom: none;
}

.newsfeed a.row .col-md-9 {
  padding-left: 0;
}

.newsfeed a:link,
.newsfeed a:visited {
  font-weight: bold;
  color: #31708f;
  font-size: 15px;
}


/**************************************
Catalogue page
**************************************/

.cat-dataset-card {
  cursor: pointer;
  width: 100%;
  margin: 0 0 15px 0;
  padding: 25px 30px;
}

.cat-dataset-card.init {
  height: 270px;
}

.cat-dataset-card:hover {
  background: #eceeef;
}

.cat-dataset-card p {
  font-family: Roboto;
  font-size: 14px;
  color: #222;
}

.cat-dataset-card h3 {
  font-weight: 600;
}

.cat-dataset-card .attributes {
  font-size: 12px;
  color: #000;
  font-weight: 400;
}

.cat-dataset-card .attributes .dataset-meta-label {
  font-weight: 500;
  margin-top: 14px;
  font-family: Montserrat;
  color: #000000;
}

.cat-dataset-card .attributes span {
  font-size: 15px;
}

.status-label {
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 1rem;
  color: #ffffff;
  display: inline-block;
  font-size: 12px;
  padding: 0.25rem 0.5rem;
  margin-bottom: 20px;
  font-weight: normal;
  text-transform: none;
  line-height: normal;
}

.status-label.new-tag {
  background: #155788 !important;
}

.status-label.retired-tag {
  background: #666666 !important;
}

.status-label.in-progress-tag {
  background: #861888 !important;
}

.status-label.updating-tag {
  background: #147128 !important;
}

#catalogue-requests-results {
  margin-top: 15px;
}


/* Catalogue sidebar */

.dataset-sidebar .card {
  margin: 0 0 30px 0;
  border: 0;
}

.card-header.filter-heading {
  background: 0;
  text-align: left;
  padding: 0;
  border: 0;
}

.list-group-flush .list-group-item {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  padding: 3px 0 4px 9px;
}

.dataset-sidebar .list-group-item {
  border: 0;
  padding: 2px 0 4px 0;
  font-size: 16px;
}

.filter a {
  color: #6d6d6d;
  display: block;
  width: 100%;
}

.filter a:hover {
  color: #185688;
}

.filter a:hover::before {
  color: #185688;
}

.filter-selected a::before {
  color: #185688;
}

.filter-selected a {
  background: #666666 !important;
  font-weight: bold !important;
  padding: 4px 10px;
  color: #f5f5f5 !important;
  border-radius: 5px;
  display: block;
  width: 100%;
}

.filter-selected span.badge {
  display: none;
}

.filter .badge {
  background: #31708f;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 100%;
}


/**************************************
Dataset page
**************************************/

.about-dataset h3 {
  text-align: center;
}

.about-dataset {
  text-align: center;
}

dl {
  padding-top: 12px;
}

.accordion {
  border: 2px solid #316f8f;
}

#description-dataset .accordion {
  max-width: 90vw !important;
  width: 90vw;
}

span.accordion-arrow {
  float: right;
}

.accordion .card-header {
  padding: 0;
}

.card-body.accordion__body {
  padding: 12px;
  margin-top: -2px;
  background: #ffffff;
}

.accordion .mb-0 .btn {
  display: inline-block;
  text-align: left;
  outline: 1px solid #31708f !important;
  margin: 0 0 4px 0;
}

#body-dataFeatures tbody > tr > td :last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

#header-Developers .btn {
  margin-bottom: 0;
}

.accordion .card {
  border: 0;
}

.accordion .mb-0 .btn:hover,
.accordion .mb-0 .btn:focus {
  color: #31708f;
  background: #ffffff !important;
}

/* added this for tooltip hover consistency */
.accordion .mb-0 .btn:hover a span,
.accordion .mb-0 .btn:focus a span {
  color: #31708f;
  background: #ffffff !important;
  transition: all 1s;
}

.accordion .mb-0 .btn {
  outline: 1px solid #31708f;
}

span.fa.fa-download,
span.fa.fa-desktop {
  padding: 0 0 0 12px;
}


/* DATASET PAGE 2025 (NEW!) */

.gold {
  fill: #f0ad4e !important;
}
.silver {
  fill: #777777 !important;
}
.bronze {
  fill: #8a6d3b !important;
}

.tooltip-inner {
  text-align: left;
}

.tooltip-inner ul {
  padding-left: 20px;
}

#dataset-stats {
  margin: 20px 0;
}

.dataset-details .stat-container {
  min-height: 85px;
}

.dataset-details .stat-container .dataset-stat {
  margin-top: 0;
  margin-bottom: 30px;
}

.dataset-details #progress-timeline {
  min-height: auto;
}

#dataset-stats .stat-container > div:first-child {
  font-weight: 600;
}

#dataset-stats .stat-container .stat-value {
  display: inline-block;
}

.stat-container svg {
  margin: 5px 8px 10px 0;
  vertical-align: middle;
}

#dataset-stats .dataset-stat ul {
  padding-left: 20px;
}

.package-header {
  margin-bottom: 40px;
  position: relative;
  height: 100px;
  overflow-y: visible;
}

.dataset-details #content h1 {
  font-size: 26px;
  font-weight: 400;
  max-width: 100%;
}

.dataset-details #content h2 {
  margin-top: 10px;
}

.dataset-details .status-label {
  margin: 0 0 0 0;
  padding: 5px 9px 5px 9px;
  float: none;
  border-radius: 38px;
  vertical-align: top;
  font-size: 14px;
  font-weight: 400;
}

.dataset-section {
  margin-bottom: 40px;
  margin-top: 20px;
}

.dataset-section hr.section-divider {
  border: none;
  border-top: 5px solid #999999;
  color: #999999;
  overflow: visible;
  height: 5px;
}

.dataset-details #content .resource-header h2 {
  margin: 0;
}

.download-data table td {
  vertical-align: middle;
}

.dataset-stats .dataset-stat {
  background: #eeeeee;
  padding: 10px;
  min-height: 90px;
}

.dataset-stats.quality-details {
  background: #eeeeee;
  margin-bottom: 15px;
  margin-left: 0;
  margin-right: 0;
}

.dataset-stats.quality-details ul {
  padding-left: 20px;
}

.accordion-container {
  margin: 20px 0;
}

.resource-accordion {
  background: #eeeeee;
  margin: 20px 0 0 0;
  position: relative;
  z-index: 9;
  top: 0px;
  height: 140px;
}

.resource-accordion.active span.accordion-arrow {
  transform: rotate(180deg);
}

.resource-accordion > * {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.accordion-control {
  left: 1%;
}

.resource-name {
  display: inline-block;
  width: 50%;
  max-width: 50%;
  left: 6%;
}

.resource-name h3 {
  margin: 0;
}

.resource-name .accordion-trigger {
  background: none;
  border: none;
  text-align: left;
}

.resource-options {
  display: inline-block;
  width: 45%;
  max-width: 45%;
  right: 0;
  text-align: center;
}

.resource-options > * {
  display: block;
  margin: auto 10px;
}

.resource-options .btn {
  display: inline-block;
}

.resource-options > select {
  display: block;
  margin: 5px auto;
}

.resource-options .btn .size {
  display: block;
}

.resource-options .btn .fa {
  display: none;
}

.resource-accordion:hover {
  background: #dddddd;
}

.resource-accordion:hover .accordion-control, .resource-accordion:hover .resource-name {
  color: #31708f;
}

.resource-nav {
  background: #ffffff;
  border-bottom: 3px solid #316f8f;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.resource-details > div {
  margin-top: 40px;
}

.resource-page {
  margin-bottom: 60px;
}

.preview-table {
  overflow-x: auto;
  width: auto;
}

.for-developers .nav-link {
  color: #31708f;
  background-color: transparent;
  margin-bottom: -1px;
}

.for-developers .nav-link:focus {
  outline: none;
}

.for-developers .nav-link:focus-visible {
  outline: 2px solid #000000;
}

.table-striped tbody tr:nth-of-type(even) {
  background-color: rgba(0, 0, 0, .1);
}

/* Accessibility contrast fixes */
.hljs-comment, .hljs-meta {
  color: #666666;
}

.hljs-string {
  color: #ac4002;
}


.resource-nav .btn {
  margin: 6px 2px -3px 0;
  padding: 5px 8px;
  position: relative;
  z-index: 11;
}

.resource-nav .btn.active {
  background: #31708f !important;
  color: #ffffff !important;
}

.resource-nav .btn-tertiary:focus {
  border: 3px solid #31708f;
}

.resource-nav .btn-tertiary:focus-visible {
  outline: 3px solid #31708f;
}

.resource-details {
  padding-top: 20px;
  min-height: 260px;
  transition: height 1s;
}



/**************************************
Requests page
Request progress page
**************************************/

.page-requests h1 {
  text-align: left;
}

.page-requests .block-label {
  display: block;
  font-weight: 500;
}

.page-requests #input-search {
  display: block;
}

.section-intro {
  margin: 20px 0;
}

.page-item.disabled button.page-link {
  opacity: 0.5;
}

.page-progress h1 span {
  font-family: Montserrat;
}

.request-progress-notes {
  min-height: 165px;
}

#progress-timeline {
  margin-top: 20px;
  min-height: 500px;
}

#request-progress-dataset h2,
#request-progress-dataset h3 {
  font-family: Roboto, sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 26px;
  margin: 6px 0 4px 0;
}

p.request-details {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 21px;
  margin: 0 0 4px 0;
}

p.request-date {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  margin: 0 0 16px 0;
}

.request-step {
  position: absolute;
  overflow: hidden;
  height: 100%;
}

.request-ticket-info {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.request-timeline {
  width: 20%;
}

.request-timeline-details {
  max-width: 80%;
}

.request-step-icon-done {
  background: url("img/vector-1-stroke.svg") no-repeat center center;
  background-color: #ec9f09;
  border-style: solid;
  border-radius: 50%;
  border-width: 2px;
  border-color: transparent;
  width: 40px;
  height: 40px;
}

.request-step-icon-active {
  background: url("img/ellipse-4.svg") no-repeat center center;
  background-color: transparent;
  border-style: solid;
  border-radius: 50%;
  border-width: 2px;
  border-color: #000000;
  width: 41px;
  height: 41px;
}

.request-step-icon-future {
  background-color: transparent;
  border-style: solid;
  border-radius: 50%;
  border-width: 1px;
  border-color: #000000;
  width: 41px;
  height: 41px;
}

.request-step-line-done {
  position: absolute;
  margin-left: 18px;
  height: 100%;
  height: 100px;
  border-right-style: solid;
  border-right-color: #ec9f09;
  border-right-width: 5px;
}

.request-step-line-active {
  position: absolute;
  margin-left: 18px;
  height: 100%;
  height: 100px;
  border-right-style: dotted;
  border-right-color: #ec9f09;
  border-right-width: 5px;
}

.request-step-line-future {
  position: absolute;
  margin-left: 18px;
  height: 100%;
  height: 100px;
  border-right-style: dotted;
  border-right-color: #ec9f09;
  border-right-width: 5px;
}

.request-steps .row:last-child .request-line {
  display: none;
}

.request-dataset-card {
  border-color: #d0d3d5;
  border-radius: 4px;
  border-style: solid;
  border-width: 1px;
  cursor: pointer;
  padding: 16px;
  margin-bottom: 30px;
}

.request-dataset-card.init {
  height: 220px;
}

.request-dataset-card:hover {
  background: #eceeef;
}

.request-dataset-card .dataset-card-header {
  height: 140px;
  overflow-wrap: break-word;
}

.request-dataset-card h2,
.request-dataset-card h3 {
  font-size: 16px;
  margin: 0 0 10px 0;
  max-height: 90px;
  overflow-y: auto;
}

.request-dataset-card a {
  display: inline-block;
  line-height: 1.4;
}

.pill {
  border-radius: 1rem;
  color: #ffffff;
  display: inline-block;
  font-size: 12px;
  padding: 0.25rem 0.5rem;
  margin-top: 0.25rem;
}

.pill-status-backlog {
  background: #e5e5e5;
  color: #000000;
}

.pill-status-initiating {
  background: #165788;
}

.pill-status-exploring {
  background: #165788;
}

.pill-status-in-progress {
  background: #165788;
}

.pill-status-waiting {
  background: #88161f;
}

.pill-status-published {
  background: #3c763d;
}

.pill-status-closed {
  background: #000000;
}



/**************************************
Blog page
Archive page
**************************************/

.blog-sidebar {
  text-align: center;
}

ul.page-list {
  margin: -20px 0 20px 0;
  padding: 0;
  text-align: center;
  list-style: none;
}

ul.page-list li a {
  color: #31708f;
  border: 1px solid #c3c3c3;
  display: block;
  padding: 7px 0;
  text-align: center;
  margin-top: -1px;
}

ul.page-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.page-list ul li a {
  color: #31708f;
  border: 1px solid #c3c3c3;
  display: block;
  padding: 7px 0;
  text-align: center;
  margin-top: -1px;
}

.blog-thumbnail {
  height: 200px;
  background-size: cover;
  background-position: 50% 50%;
  border-radius: 0px;
  border: 1px solid #f4f4f4;
  margin: 0 0 10px 0;
}

.blog-item .attributes {
  font-size: 12px;
}

section.main-post-listing {
  text-align: center;
}

section.main-post-listing .btn {
  width: 100%;
}



/**************************************
Blog post templates
**************************************/

.post-content h1 {
  padding: 0 0 6px 0;
  display: block;
}

.post-content .byline {
  padding: 0 0 12px 0;
  display: block;
  color: #222222;
  font-family: Montserrat;
  text-align: center;
}

.post-content img {
  padding: 0 0 12px 0;
}



/**************************************
Gallery Page 2025 (NEW!)
**************************************/

#content.page-gallery h1 {
  color: #000000;
  font-family: Montserrat;
  font-size: 30px;
  font-weight: 500;
  line-height: 33px;
  letter-spacing: 0.02em;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  word-break: break-all;
  margin-bottom: 0.5rem;
}

.page-gallery h2 {
  color: #000000;
  display: inline-block;
  font-family: Montserrat;
  font-size: 24px;
  font-weight: 500;
  line-height: 26px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

.page-gallery h3 {
  font-family: Montserrat;
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

.cat-status {
  float: right;
}

#gallery-carousel {
  background: #f2f2f2;
  height: 560px;
  max-height: 560px;
  padding: 0;
  margin-left: 0px;
  margin-right: 0px;
  position: relative;
  overflow: hidden;
}

#gallery-carousel .carousel-image-container {
  max-height: 468px;
  padding: 0;
  overflow: hidden;
  display: none;
}

.carousel-details-container {
  background: #f2f2f2;
  height: 615px;
  max-height: 615px;
  position: relative;
  padding-top: 20px;
}

#content #gallery-carousel h1 {
  text-align: center;
}

#gallery-carousel p.project-tags {
  text-align: center;
}

#gallery-carousel p.platform-tags {
  text-align: center;
}

#gallery-carousel p {
  color: #000000;
  font-family: Roboto;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.0012em;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

#gallery-carousel p.text-small {
  color: #000000;
  font-family: Roboto;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

.page-gallery .pill {
  font-family: Roboto;
  font-size: 14px;
  font-weight: 500;
  line-height: 21.09px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  margin-right: 5px;
}

.page-gallery .gallery-pill {
  background: #31708f;
}

.carousel-controls {
  position: absolute;
  bottom: 0;
  padding-bottom: 20px;
  left: auto;
  right: auto;
  text-align: center;
  width: 100%;
}

.carousel-controls > * {
  vertical-align: middle;
  margin: 0 5px;
}

.carousel-controls .btn-back {
  background: url("img/left-arrow.svg") no-repeat center center;
  background-color: transparent;
  border: none;
  width: 20px;
  height: 35px;
}

.carousel-controls .btn-forward {
  background: url("img/right-arrow.svg") no-repeat center center;
  background-color: transparent;
  border: none;
  width: 20px;
  height: 35px;
}

.carousel-controls .btn-page {
  background: url("img/carousel-page.svg") no-repeat center center;
  background-color: transparent;
  border: none;
  width: 24px;
  height: 24px;
  padding: 10px;
}

.carousel-controls .btn-page.active {
  background: url("img/carousel-page-active.svg") no-repeat center center;
  background-color: transparent;
  border: none;
  width: 24px;
  height: 24px;
  padding: 10px;
}

.carousel-controls .btn-pause-play {
  background: url("img/btn-pause.svg") no-repeat center center;
  background-color: transparent;
  border: 2px solid #31708f;
  width: 35px;
  height: 35px;
  display: block;
  float: none;
  padding: 10px;
  margin: 10px auto;
}

.carousel-controls .btn-pause-play.paused {
  background: url("img/btn-play.svg") no-repeat center center;
}

.slide {
  display: flex;
  opacity: 0;
  transition: opacity 1s;
  position: absolute;
}

.slide.active {
  display: flex;
  opacity: 1;
}

.slide.inactive {
  display: none;
}

.gallery-intro {
  margin-top: 40px;
}

.gallery-learn-more {
  background: #e5e5e5;
  padding: 20px 10px 20px 10px;
  margin: 0;
  position: relative;
}

.gallery-learn-more > * {
  padding-top: 20px;
  padding-bottom: 20px;
}

.gallery-learn-more .v-center {
  position: relative;
}

.gallery-learn-more .v-center > * {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-learn-more p {
  font-family: Roboto;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  margin: 0;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  font-variation-settings: "wdth" 100;
  position: static;
}

.gallery-learn-more .btn {
  display: block;
  width: 140px;
  margin: 20px auto 0;
  position: static;
  transform: none;
}

.gallery-list {
  margin-top: 40px;
}

.page-gallery .gallery-item-container {
  padding: 0px;
  margin-bottom: 20px;
}

.page-gallery .gallery-item-container .col-md-12 {
  box-sizing: border-box;
  background-clip: padding-box;
  padding-left: 10px;
  padding-right: 10px;
}

.page-gallery .gallery-item {
  text-align: left;
  border: 1px solid #dddddd;
  height: 680px;
  position: relative;
}

.page-gallery .gallery-item .project-image-container {
  max-height: 320px;
  overflow: hidden;
}

.page-gallery .gallery-item .project-details-container {
  margin: 20px;
  height: 468px;
  max-height: 468px;
  overflow: hidden;
}

.page-gallery .gallery-item .project-platforms-container {
  position: absolute;
  bottom: 20px;
  height: 40px;
  left: 20px;
  right: 20px;
}

#content.page-gallery .gallery-item .project-platforms-container hr {
  border-top: 1px solid #dddddd;
  margin: 0;
}

.page-gallery .gallery-item .project-platforms-container p {
  margin: 10px 0;
}

.page-gallery .gallery-item p {
  font-family: Roboto;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

.page-gallery p.project-creator {
  margin-bottom: 0.5rem;
}

.page-gallery .pill-platform {
  background: #636c72;
  padding: 4px 8px 4px 8px;
  margin-right: 10px;
  border-radius: 3px 3px 3px 3px;
  font-family: Roboto;
  font-size: 13px;
  font-weight: 700;
  line-height: 19px;
  letter-spacing: 0.075rem;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

.page-gallery .pill-platform .external-link-icon {
  width: 16px;
  height: 16px;
  background-image: url(img/external-link-white.svg);
  margin-right: 0;
}

.page-gallery .item-view-all .hidden {
  display: none;
}

.page-gallery .view-all {
  margin-top: 20px;
  text-align: center;
}

.page-gallery hr.category-hr {
  margin-top: 40px;
}



/**************************************
404 Page
**************************************/

.large.heading {
  font-size: 4rem;
  text-align: center;
  color: #175787;
}

.subtext {
  text-align: center;
}



/***************************************************************
****************************************************************
Accessibility
****************************************************************
***************************************************************/

.sr-only-focusable:focus {
  display: block;
  margin: 0 0 20px 0 !important;
  padding: 9px;
  background: #fff283 !important;
  outline-width: 2px;
  outline-offset: 2px;
}

.about-dataset a:focus,
.sidebar a:focus,
a.breadcrumb-item:focus {
  background: #ffeb9c;
}

#search-error-container {
  height: 26px;
}

/* Increase contrast for error */
#search-error {
  color: #a72925 !important;
}

.hidden {
  display: none;
}

.visually-hidden {
  clip-path: inset(100%);
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}



/***************************************************************
****************************************************************
Responsive media queries
****************************************************************
***************************************************************/

/* DEFAULT BOOTSTRAP BREAKPOINTS IN BOOTSTRAP-GRID.CSS:

@media (min-width: 576px) {
@media (min-width: 768px) {
@media (min-width: 992px) {
@media (min-width: 1200px) {

*/

/* Tablet (Desktop Small) */

@media (min-width: 576px) {

  /* Home page */

  section#home-about {
    margin: 25px 0;
    text-align: left;
  }

  section#home-recent-datasets {
    margin: 25px 0;
    text-align: left;
  }

  .package-header {
    height: 70px;
  }

}


/* Desktop Medium */

@media (min-width: 768px) {

  /* General/Global */
  #super-header {
    height: 80px;
  }

  input#nav-search {
    margin: 0 7px 0 0 !important;
    width: 84% !important;
  }

  nav form.form-inline button.btn {
    width: auto;
    float: right;
  }

  h1 {
    text-align: left;
  }

  #footer-links {
    padding: 30px 0 30px 0;
  }
  
  footer .copyright {
    text-align: left;
  }
  
  footer {
    text-align: left;
  }


  /* Home page */

  ul.page-list {
    margin: auto;
    padding: unset;
    text-align: unset;
    list-style: none;
  }

  ul.page-list li a {
    color: #31708f;
    border: none;
    display: block;
    padding: 7px 0;
    text-align: left;
    margin-top: -1px;
  }

  ul.page-list ul {
    list-style: circle;
    padding-left: 40px;
  }
  
  ul.page-list ul li a {
    color: #31708f;
    border: none;
    display: block;
    padding: 0;
    text-align: left;
    margin-top: 0;
  }

  .about-dataset h3 {
    text-align: left;
  }

  .about-dataset {
    text-align: left;
  }

  .hero {
    max-width: 100%;
  }

  .jumbotron {
    padding: 180px 0;
  }
  
  .jumbotron h1 {
    padding: 0px 0 30px 0;
  }

  section.main-post-listing {
    text-align: left;
  }

  section.main-post-listing .btn {
    width: auto;
  }


  /* Blog pages */

  .blog-sidebar {
    text-align: left;
  }

  .post-content .byline {
    text-align: left;
  }

 
  /* Requests page */

  #requests-datasets form.orderby-form {
    float: right;
  }


  /* Dataset page */
  
  .package-header {
    height: 50px;
  }

  .dataset-details #content h1 {
    max-width: 80%;
  }

  #sharebutton {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 0;
    text-align: left;
  }

  .sharebox {
    left: 0;
    transform: none;
  }

  #description-dataset .accordion {
    max-width: none;
    width: auto;
  }

  .resource-options .btn .size {
    display: inline;
  }
  
  .resource-options .btn .fa {
    display: inline;
  }

 

  /* Gallery page */

  #gallery-carousel {
    height: 468px;
    max-height: 468px;
  }

  #gallery-carousel .carousel-image-container {
    display: block;
  }

  .carousel-details-container {
    height: 468px;
    max-height: 468px;
  }

  #content #gallery-carousel h1 {
    text-align: left;
  }

  #gallery-carousel p.text-small {
    text-align: left;
  }

  #gallery-carousel p.project-tags {
    text-align: left;
  }

  #gallery-carousel p.platform-tags {
    text-align: left;
  }

  #gallery-carousel p {
    font-size: 14px;
    line-height: 18px;
  }

  .carousel-controls {
    position: absolute;
    bottom: 0;
    padding-bottom: 20px;
    left: 59.25%;
    right: 10px;
    width: auto;
    text-align: left;
  }

  .carousel-controls > * {
    margin: 0 5px;
  }

  .carousel-controls .btn-pause-play {
    display: block;
    margin: 0 5px;
    float: right;
  }

  .page-gallery .gallery-item {
    height: auto;
  }

  .page-gallery .gallery-item .project-image-container {
    max-height: 320px;
  }

  .page-gallery .gallery-item .project-details-container {
    height: auto;
    max-height: none;
  }

  .page-gallery .gallery-item .project-platforms-container {
    position: static;
  }

  .gallery-learn-more .btn {
    display: block;
    width: auto;
    margin: auto;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .page-gallery .gallery-item .project-image-container {
    max-height: 260px;
  }

}


/* Desktop Large */

@media (min-width: 992px) {

  /* General/Global */

  input#nav-search {
    margin: 0 7px 0 0 !important;
    width: 200px;
    max-width: 200px;
  }

  form.orderby-form {
    float: right;
  }

  .btn-tertiary {
    padding: 10px 21px;
  }


  /* Home page */
  
  ul#menu-homepage li.menu-item {
    border: none;
    text-align: left;
    margin: auto;
  }

  ul#menu-homepage li.menu-item:nth-child(1) {
    margin: auto;
  }

  
  /* Catalogue page */

  .status-label {
    float: right;
    margin-bottom: 0;
  }


  /* Dataset page */

  .dataset-details #content h1 {
    font-size: 36px;
  }

  .dataset-details .status-label {
    padding: 5px 12px 5px 12px;
    font-size: 26px;
  }

  #sharebutton {
    top: 0;
  }

  .resource-accordion {
    height: 90px;
  }

  .resource-name {
    width: 45%;
    max-width: 45%;
    left: 4%;
  }

  .resource-options {
    width: 55%;
    max-width: 55%;
    text-align: right;
  }

  .resource-options > * {
    display: inline-block;
    margin: auto 10px;
  }

  .resource-options > select {
    display: inline-block;
    margin: auto 10px;
  }

  .resource-options .btn {
    width: 220px;
  }

  .resource-details nav {
    height: 43px;
  }
  
  .resource-nav .btn {
    margin: 0px;
    padding: 10px 16px;
  }


  /* Gallery page */

  #gallery-carousel p {
    font-size: 18px;
    line-height: 24px;
  }

  .page-gallery .gallery-item .project-image-container {
    max-height: 300px;
  }

}



/* Desktop Extra-Large */

@media (min-width: 1200px) {
  
}
