.esri .esriCreateAppDlg .dijitDialogPaneContent,
.esri .esriShareMapDlg .dijitDialogPaneContent,
.esri .esriPublishingWizardDlg .dijitDialogPaneContent{
    padding: 0px;
    overflow: hidden;
}

.esri .esriCreateAppDlg.dijitDialog {
    /*width: auto;*/
    min-width: 665px;
}

.esri .esriCreateAppDlg .dijitContentPane {
    padding: 15px;
    min-width: 70% !important;
}

.esri .esriCreateAppDlg .dojoxWizardButtons {
    margin-bottom: 15px;
}

.esri .esriCreateAppDlg .dojoxWizard {
    /*padding-right: 15px;*/
}

.esri .esriShareMapDlg {
    min-width: 675px;
}

.esri .esriShareMapDlg .dijitDialogPaneContent .share-map-stack-stack {
    margin-bottom: 15px;
}

.esriCreateApp {
  /*width: 1100px;*/
  width: 900px;
  max-width: 900px;
  /*min-width: 450px;*/
  height: 600px;
  /*min-width: 900px;*/
  /*padding-bottom: 15px !important;    *//*gets overidden by the dijit wizard style otherwise*/
}

.esriBrowseItemsCtr {
  margin: 0 auto;
  width: 100%;
  font-family: "Avenir LT W01 35 Light",Arial,Helvetica,sans-serif;
  /*padding: 15px;*/
  height: 100%;
}

.esriBrowseItemsCtr.filters .esriHelpIcon {
    background: url("../images/helpIcon.png") no-repeat center;
    width: 20px;
    height: 20px;
    margin: 1px 0 0 10px;
    cursor: pointer;
    display: inline-block;
}

.esriBrowseItemsCtr.filters .esriHelpIcon.hide {
    display:none;
}

.esriRtl .esriBrowseItemsCtr.filters .esriHelpIcon {
    margin: 0 10px 0 0;
}

.esriBrowseItemsCtr .gallery {
    /*border: 1px solid #CBCBCB;*/
    min-height: 450px;
    margin: 0 auto;
    height: 100%;
    clear: both;
}

.esriBrowseItemsCtr .loaderWrap,
.esriBrowseItemsCtr .dgrid .dgrid-loading {
    position: absolute;
    background: #fff url("../images/loading-throb.gif") 100% center no-repeat !important;
    top: 45%;
    width: 33px;
    text-align: center;
    z-index: 100;
    color: #ccc;
    height: 39px;
    left: 58%;
}

.esriBrowseItemsCtr.nofilters .loaderWrap {
    left: 48%;
}

.esriBrowseItemsCtr .loaderWrap.hide{
   display:none;
}

.esriBrowseItemsCtr .top-bar {
    clear: both;
    width: 100%;
    padding: 0;
    margin: auto;
}

.esriBrowseItemsCtr #gallery-grid_search {
    width: 31%;
    margin-bottom: 10px;
}

/*-------- Filters  -------------------------*/
.esriBrowseItemsCtr .gallery .gallery-left {
    float: left;
    width: 25%;
    /*padding-right: 2%;*/
}

.esriBrowseItemsCtr.nofilters .gallery .gallery-left {
    width: 0;
    display:none;
}

.esriBrowseItemsCtr .gallery-left ul {
    list-style: none;
    padding: 0 0;
    margin: 15px 0;
    width: 99%;
    border-right: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
    border-left: 1px solid #efefef;
}

.esriBrowseItemsCtr .gallery-left li a {
  padding: .5rem .2rem .5rem .7rem;
  font-size: 15px;
  /*border-radius: 4px 0 0 4px;*/
  margin-right: 0;
  display: block;
  line-height: 1.42857143;
  border-top: 1px solid #efefef;
  width: 90%;
  color: #6e6e6e;
  position: relative;
}

.esriBrowseItemsCtr .gallery-left li.active>a, .esriBrowseItemsCtr .gallery-left li.active>a:focus {
    color: #6e6e6e;
    cursor: default;
    background-color: #d2e9f9;
}

.esriBrowseItemsCtr .gallery-left li a:hover:after {
    content: "»";
    opacity: 1;
    position: absolute;
    right: 0;
    top: .5rem;
    padding: 0 0.3875rem;
    -webkit-transition: all 150ms linear;
    transition: all 150ms linear;
}

.esriBrowseItemsCtr .gallery .gallery-left a {
    text-decoration: none;
    color: #6e6e6e;
    font-size: 15px;
}

/*-------- right side div  -------------------------*/

.esriBrowseItemsCtr .gallery .gallery-right {
    float: right;
    width: 74%;
    /*max-height:450px;*/
    height: 100%;
    /*overflow-y: auto;*/
    margin-top: 8px;
}

.esriBrowseItemsCtr.nofilters .gallery .gallery-right {
    width: 100%;
    float: left;
    overflow: hidden;
}


.esriBrowseItemsCtr .gallery .gallery-right p.filter-title {
    margin-bottom: 0.3em;
    padding: 0 1.5% 0 1.5%;
    font-size: 17px;
    /*height: 3.0em;*/
}

/*--------Item  -------------------------*/
.esriBrowseItemsCtr .dgrid .gallery-view h5 {
  width: 100%;
  height: 2.125em;
  line-height: 1.0em;
  font-size: 16px;
  word-wrap: break-word;
  font-family: "Avenir LT W01 35 Light",Arial,Helvetica,sans-serif;
  overflow: hidden;
}

.esriBrowseItemsCtr .dgrid-grid.dgrid .gallery-view img {
  border: 1px solid #e0e0e0;
  padding: 4px;
  -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.esriBrowseItemsCtr .dgrid-grid.dgrid .gallery-view img:hover {
    border-color: #333;
}

.esriBrowseItemsCtr.showing .dgrid-grid.dgrid .gallery-view img:hover {
    border-color: #e0e0e0;
}

.esriBrowseItemsCtr .dgrid-grid.dgrid .dgrid-row .gallery-view {
    float: left;
    width: 29.9%;
    padding: 1% 1.6%;
    margin: auto;
    position: relative;
}

.esriBrowseItemsCtr.nofilters.wide .dgrid-grid.dgrid .dgrid-row .gallery-view {
    width: 21%;
}

/*-------- Slide out template div  -------------------------*/

.esriBrowseItemsCtr .template-overlay {
    position: absolute;
    z-index: 100;
    top: 12px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    text-align: center;
    color: #fff;
    width: 187px;
    height: 124px;
    line-height: 124px;
    pointer-events: none;
    font-size: 15px !important;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.esriBrowseItemsCtr .template-overlay p {
  font-size: 15px;
}

.esriBrowseItemsCtr.nofilters.wide .template-overlay {
    top: 14px;
    left: 18px;
}

/*.esriBrowseItemsCtr .gallery.filters,*/
/*.esriBrowseItemsCtr.nofilters .gallery {*/
    /*height:auto;*/
    /*min-height: 450px;*/
    /*min-width: 880px;*/
/*}*/

.esriBrowseItemsCtr .gallery .gallery-left {
    overflow-y: auto;
    overflow-x: hidden;
    height: 90%;
}

/*-------- Instructions across the top  -------------------------*/

.esriBrowseItemsCtr .instructions {
    margin-top:10px;
    margin-bottom: 10px;
    width:50%;
}

.esriBrowseItemsCtr.filters .instructions {
    width:60%;
}

.esriBrowseItemsCtr  .instructions span{
    font-size: 17px;
}

.esriBrowseItemsCtr .instructions span {
    display: inline-block;
}

.esriBrowseItemsCtr .instructions span.hide.messageLeft,
.esriBrowseItemsCtr.nofilters span.messageLeft {
    width: 0;
    padding: 0;
    display: none;
}

.esriBrowseItemsCtr .instructions span.messageLeft {
    width: 37%;
    padding-right: 6.25%;
    vertical-align: top;
}

.esriBrowseItemsCtr .instructions span.messageRight,
.esriBrowseItemsCtr.nofilters .gallery span.messageRight {
    width: 100%;
    vertical-align: top;
}

.esriBrowseItemsCtr.filters .instructions span.messageRight {
    max-width: 40%;
    width: auto;
    vertical-align: top;
}

.esriBrowseItemsCtr .input-group-btn .btn {
    margin-top: 0.6em;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    height: 2.25rem;
}

/*--------DGrid -------------------------*/
.esriBrowseItemsCtr .dgrid {
  /*border: 1px solid #CBCBCB;*/
  border: none !important;
  height: auto;
  min-height: 180px !important;
  /*min-height: 400px;*/
  /*clear:both;*/
  /*overflow-y: auto;*/
}

.esriBrowseItemsCtr .dgrid-no-data {
    position: relative;
    font-size: 17px;
    margin: 20px;
}

.esriBrowseItemsCtr.showing .instructions .messageRight,
.esriBrowseItemsCtr.showing .templates .dgrid,
.esriBrowseItemsCtr.showing .templates .filter-title,
.esriBrowseItemsCtr .templates.fade .dgrid,
.esriBrowseItemsCtr .templates.fade .filter-title,
.esriBrowseItemsCtr.showing .esriHelpIcon {
    opacity: 0.3;
    -webkit-transition: opacity 250ms ease-in-out, left 0ms linear 250ms;
    -moz-transition: opacity 250ms ease-in-out, left 0ms linear 250ms;
    -ms-transition: opacity 250ms ease-in-out, left 0ms linear 250ms;
    -o-transition: opacity 250ms ease-in-out, left 0ms linear 250ms;
    transition: opacity 250ms ease-in-out, left 0ms linear 250ms;
    pointer-events: none;
}

.esriBrowseItemsCtr.showing .esriHelpIcon {
    pointer-events: none;
    cursor: default;
}

.esriBrowseItemsCtr.showing .gallery .gallery-right {
    cursor: pointer;
}

.esriBrowseItemsCtr .instructions .messageRight,
.esriBrowseItemsCtr .templates {
    opacity: 1;
    -webkit-transition: opacity 250ms ease-in-out, left 0ms linear;
    -moz-transition: opacity 250ms ease-in-out, left 0ms linear;
    -ms-transition: opacity 250ms ease-in-out, left 0ms linear;
    -o-transition: opacity 250ms ease-in-out, left 0ms linear;
    transition: opacity 250ms ease-in-out, left 0ms linear;
}

.esriBrowseItemsCtr .dgrid-grid.dgrid .dgrid-scroller {
    position: relative;
    /*max-height: 390px;*/
    /*overflow-y: auto;*/
    min-height: 380px;
}

.esriBrowseItemsCtr.nofilters .dgrid-grid.dgrid .dgrid-scroller {
    margin-bottom: 0px !important;
}

.esriBrowseItemsCtr .dgrid-grid.dgrid, .esriBrowseItemsCtr .dgrid-grid.dgrid .dgrid-content {
    background: none repeat scroll 0 0 #FFF;
    border: none;
    width: auto !important;
    height: auto;
}

.esriBrowseItemsCtr .dgrid-grid.dgrid {
    max-height: 75%;
    overflow-y: auto;
}

.esriShareMapDlg .esriBrowseItemsCtr .dgrid-grid.dgrid {
    max-height: 450px;
}

.esriBrowseItemsCtr .dgrid-grid.dgrid .dgrid-content {
    overflow-y: hidden;
}

/*--------DGrid Selection and Hover-------------------------*/
.esriBrowseItemsCtr .dgrid-grid.dgrid .dgrid-row .gallery-view:hover {
    cursor: pointer;
    background: #fff;
    background-color: #fff;
}

.esriBrowseItemsCtr .dgrid-grid.dgrid .dgrid-row.dgrid-selected .gallery-view,
.esriBrowseItemsCtr .dgrid-grid.dgrid .dgrid-row.dgrid-selected .gallery-view:hover,
.esriBrowseItemsCtr .soria .dgrid-selected {
    background: #fff;
    background-color: #fff;
}

/*--------DGrid Paging  -------------------------*/
.esriBrowseItemsCtr .dgrid .dgrid-footer {
  background: none repeat scroll 0 0 #FFF !important;
  position: relative;
}

.esriBrowseItemsCtr .dgrid-grid.dgrid .dgrid-navigation {
  float: inherit !important;
  margin: 0 auto;
  height: 40px;
  text-align: center;
  display: table;
  width: auto !important;
}

.esriBrowseItemsCtr .dgrid .dgrid-status {
  display: none !important;
  visibility: hidden;
}

.esriBrowseItemsCtr .dgrid .dgrid-pagination .dgrid-page-link,
.esriBrowseItemsCtr .dgrid .dgrid-pagination .dgrid-page-skip{
    background: none repeat scroll 0 0 #F2F2F2;
    border: 1px solid #EDEDED;
    border-radius: 4px 4px 4px 4px;
    -webkit-border-radius: 4px 4px 4px 4px;
    -moz-border-radius: 4px 4px 4px 4px;
    -ms-border-radius: 4px 4px 4px 4px;
    -o-border-radius: 4px 4px 4px 4px;
    color: #999999;
    font-size: 1em;
    line-height: 1.5em;
    margin: 5px;
    padding: 5px 10px;
    float: left;
}

.esriBrowseItemsCtr .dgrid .dgrid-pagination .dgrid-page-disabled,
.esriBrowseItemsCtr .dgrid .dgrid-pagination .dgrid-page-link:hover,
.esriBrowseItemsCtr .dgrid .dgrid-pagination .dgrid-first:hover,
.esriBrowseItemsCtr .dgrid .dgrid-pagination .dgrid-previous:hover,
.esriBrowseItemsCtr .dgrid .dgrid-pagination .dgrid-next:hover,
.esriBrowseItemsCtr .dgrid .dgrid-pagination .dgrid-last:hover {
    background-color: #007AC2;
    color: #FFF;
}

.esriBrowseItemsCtr .dgrid .dgrid-pagination .dgrid-first,
.esriBrowseItemsCtr .dgrid .dgrid-pagination .dgrid-previous,
.esriBrowseItemsCtr .dgrid .dgrid-pagination .dgrid-next,
.esriBrowseItemsCtr .dgrid .dgrid-pagination .dgrid-last {
    background: none repeat scroll 0 0 #F2F2F2;
    border: 1px solid #EDEDED;
    border-radius: 4px 4px 4px 4px;
    -webkit-border-radius: 4px 4px 4px 4px;
    -moz-border-radius: 4px 4px 4px 4px;
    -ms-border-radius: 4px 4px 4px 4px;
    -o-border-radius: 4px 4px 4px 4px;
    color: #999999;
    font-size: 1em;
    line-height: 1.5em;
    margin: 5px;
    padding: 5px 10px;
    float: left;
}

.esriBrowseItemsCtr .gallery .templateInfoPanel {
    width: 279px;
    padding: 15px;
    /* opacity: 0; */
    background: rgba(255,255,255, 1);
    border: solid 1px #e0e0e0;
    border-right: none;
    right: -680px;
    top: 0px;
    overflow-x: hidden;
    position: absolute;
    z-index: 800;
    -webkit-box-shadow: -2px 1px 2px rgba(0,0,0, 0.25);
    box-shadow: -2px 1px 2px rgba(0,0,0, 0.25);
    -webkit-transition: all 500ms ease-in-out;
    -moz-transition: all 500ms ease-in-out;
    -ms-transition: all 500ms ease-in-out;
    -o-transition: all 500ms ease-in-out;
    transition: all 500ms ease-in-out;
    height: 94.5%;
}

.dj_ie8 .esriBrowseItemsCtr .gallery .templateInfoPanel {
    background: #fff;
}

.esriBrowseItemsCtr.showing .gallery .templateInfoPanel {
    opacity: 1;
    right: 0px;
}

.esriCreateAppDlg .esriBrowseItemsCtr.filters .gallery .templateInfoPanel {
    height: 94.5%;
}

#share-map-dialog .esriBrowseItemsCtr .gallery .templateInfoPanel {
    height: 97%;
}

.esriPublishingWizard .withTabs .esriBrowseItemsCtr .gallery .templateInfoPanel {
    top: 49px;
    height: 87%;
}

.esriBrowseItemsCtr .template-info-showing {
    min-height: 150px;
}

.esriBrowseItemsCtr .template-info-showing .template-info {
    display:block;
}
.esriBrowseItemsCtr .template-info-showing .thumbnail {
    border: 1px solid #e0e0e0;
    width: auto;
    margin: 0 0 10px 0;
    float:left;
    padding: 0;
}

.esriBrowseItemsCtr .template-info-showing .thumbnail:hover {
    border-color: #e0e0e0;
    cursor: initial;
}

.esriBrowseItemsCtr .template-info-showing .thumbnail > img{
    margin: 0;
    width:277px;
}
.esriBrowseItemsCtr .template-info-showing h4 {
    margin-bottom:0.5rem;
    font-size: 1.25rem;
    clear:left;
    color: #616161;
    font-weight: normal;
    max-height: 3.0em;
    overflow: hidden;
    height: auto;
}

.esriBrowseItemsCtr .template-info-showing p {
    font-size: 1rem !important;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    height: 7.5em;
    line-height: 1.25em;
}

.esriBrowseItemsCtr .panel-actions {
    /* text-align: right; */
    width: 100%;
    position: absolute;
    bottom: 15px;
    left: 0;
    opacity: 0;
    -webkit-transition: opacity 250ms ease 500ms;
    -moz-transition: opacity 250ms ease 500ms;
    -ms-transition: opacity 250ms ease 500ms;
    -o-transition: opacity 250ms ease 500ms;
    transition: opacity 250ms ease 500ms;
    text-align: center;
}

/* SCROLL BAR REMOVE */

.esriBrowseItemsCtr .quiet-scroll pre::-webkit-scrollbar, .esriBrowseItemsCtr .quiet-scroll::-webkit-scrollbar {
    width: 4px !important;
    height: 4px !important;
    border-left: 0;
    background: rgba(0, 0, 0, 0.1);
}

.esriBrowseItemsCtr .quiet-scroll pre::-webkit-scrollbar-thumb, .esriBrowseItemsCtr .quiet-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0;
}

.esriBrowseItemsCtr .quiet-scroll pre::-webkit-scrollbar-track, .esriBrowseItemsCtr .quiet-scroll::-webkit-scrollbar-track {
    background: none;
}

.esriBrowseItemsCtr.showing .panel-actions {
  opacity: 1;
}

.esriBrowseItemsCtr .btn-main {
    width: 90%;
    /* margin-left: 5%; */
    margin-bottom: 10px;
}

.esriBrowseItemsCtr .btn-secondary {
    background-color: transparent;
    color: #5daddd;
    width: 44%;
    border: 1px solid #5daddd;
    margin: 4px 4px 10px 4px;
}

.de .esriBrowseItemsCtr .btn-secondary,
.sv .esriBrowseItemsCtr .btn-secondary,
.da .esriBrowseItemsCtr .btn-secondary,
.nl .esriBrowseItemsCtr .btn-secondary,
.fr .esriBrowseItemsCtr .btn-secondary,
.lv .esriBrowseItemsCtr .btn-secondary,
.nb .esriBrowseItemsCtr .btn-secondary,
.pl .esriBrowseItemsCtr .btn-secondary,
.ro .esriBrowseItemsCtr .btn-secondary,
.el .esriBrowseItemsCtr .btn-secondary{
    width: 90%;
}

.esriBrowseItemsCtr .btn-wide {
    width: 90%;
}

.esriBrowseItemsCtr .btn-secondary:hover {
    text-decoration: none;
    background-color: #5daddd;
    color: white;
}

.esriBrowseItemsCtr .btn-cancel {
    background: none;
    border-color: #fff;
    color: #828282;
}

.esriBrowseItemsCtr .btn-cancel:hover {
    background: none;
    border-color: #fff;
    color: #005e95;
}


.esriBrowseItemsCtr p {
    margin:0;
}

.esriBrowseItemsCtr .btn {
    text-transform: uppercase;
    font-size: 14px;
    padding: 0.37rem 0.9rem;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    white-space: normal;
    word-wrap: break-word;
}

.esriBrowseItemsCtr .searchBar {
    margin-right: 10px;
    margin-top: 3px;
    max-width: 50%;
    width: auto;
}

.esriBrowseItemsCtr .searchBar .esriSearchBox {
    /*background: #fff url("../images/search32.png") 98% center no-repeat !important;*/
    /*background: none !important;*/
    padding-left: 1.50em !important;
    background: url('../images/search.svg') no-repeat .25em center white !important;
    display: inline-block;
    padding: 0 0.31rem;
    font-size: 0.9375rem;
    line-height: 1.55rem;
    color: #595959;
    border: 1px solid #a9a9a9;
    -webkit-transition: border-color 150ms linear;
    transition: border-color 150ms linear;
    -webkit-appearance: textfield;
    height: 2.25rem;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
    width: auto;
    margin: 0 0 0 0 0;
    float: left;
    width: auto;
}

.esriRtl .esriBrowseItemsCtr .searchBar .esriSearchBox {
    padding-left: inherit;
    padding-right: 0.25em;
}

.esriBrowseItemsCtr .searchBar .btn {
    margin-top: 0.6em;
    height: 38px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.dj_ie .esriBrowseItemsCtr .searchBar .btn {
    margin-top: 0.5em;
}

.dj_ie8 .esriBrowseItemsCtr .searchBar {
    width: 38%;
}

.dj_ie8 .esriBrowseItemsCtr .searchBar .btn {
    margin-top: 0.6em;
    height: 32px;
}

.dj_ie8 .esriBrowseItemsCtr .searchBar input {
    width: 150px;
    height: 30px;
}

@media (max-width: 965px) and (min-width: 600px) {
    .esriCreateApp .esriBrowseItemsCtr .dgrid-grid.dgrid .dgrid-row .gallery-view {
        width: 45%;
    }
}

/*-------- RTL Styles  -------------------------*/

/*.esriRtl .esriBrowseItemsCtr .esriSearchBox {*/
    /*background: #fff url("../images/search32.png") 2% center no-repeat !important;*/
/*}*/

.esriBrowseItemsCtr .esriSearchBox:focus {
    border: 1px solid #0079C1
}

.esriRtl .esriBrowseItemsCtr .dgrid .dgrid-navigation{
    /*float:left;*/
}

.esriRtl .esriBrowseItemsCtr .dgrid .dgrid-pagination .dgrid-page-link,
.esriRtl .esriBrowseItemsCtr .dgrid .dgrid-pagination .dgrid-page-skip {
    float:right;
}

.esriRtl .esriCreateApp .dojoxWizardButtons {
    right: inherit;
    left: 5px;
}

.esriRtl .esriBrowseItemsCtr .dgrid .dgrid-row .gallery-view {
    float: right;
}

.esriRtl .esriBrowseItemsCtr .gallery .gallery-left {
    float: right;
}

.esriRtl .esriBrowseItemsCtr .gallery-left li a:hover:after {
    right: inherit;
    left: 0;
}

.esriRtl .esriBrowseItemsCtr .searchBar {
    margin: 0 0 0 10px;
}

.esriRtl .esriBrowseItemsCtr .searchBar .esriSearchBox {
    /*float: right;*/
    border-radius: 0 4px 4px 0;
    background: url('../images/search_rtl_32.png') no-repeat .25em center white !important;
}

.esriRtl .esriBrowseItemsCtr .searchBar .btn {
    border-radius: 4px 0 0 4px;
}

.esriRtl .esriBrowseItemsCtr .template-overlay {
    top: 11px;
    left: 6px;
}

.esriRtl .esriCreateApp .esriBrowseItemsCtr .template-overlay {
    top: 11px;
    left: 15px;
}

.esriRtl .esriBrowseItemsCtr .gallery .templateInfoPanel {
    border-left: none;
    left: -680px;
    right: inherit;

    -webkit-box-shadow: 2px 1px 2px rgba(0,0,0, 0.25);
    box-shadow: 2px 1px 2px rgba(0,0,0, 0.25);
    -webkit-transition: all 500ms ease-in-out;
    -moz-transition: all 500ms ease-in-out;
    -ms-transition: all 500ms ease-in-out;
    -o-transition: all 500ms ease-in-out;
    transition: all 500ms ease-in-out;
}

.esriRtl .esriBrowseItemsCtr.showing .gallery .templateInfoPanel {
    left: 0;
    right: inherit;
}

.esriRtl .esri .esriShareMapDlg .dijitDialogCloseIcon {
    left: 1% !important;
    right: inherit !important;
}

.esriRtl .esriBrowseItemsCtr .searchBar {
    margin-right: inherit;
    margin-left: 15px;
}

/* Medium screens */
@media all and (max-width: 800px) {
  .esriBrowseItemsCtr .dgrid .dgrid-content {
    display: flex;
    flex-flow: row wrap;    
    /* When on medium sized screens, we center it by evenly distributing empty space around items */
    justify-content: space-around;
  }
  .esriBrowseItemsCtr .dgrid .dgrid-row {
    flex: 0 1 50%;
  }  
}

/* Small screens */
@media all and (max-width: 500px) {
  .esriBrowseItemsCtr .dgrid .dgrid-content, .esriBrowseAnalysisLayers .top-bar {
    display: flex;
    flex-flow: row wrap;
    /* On small screens, we are no longer using row direction but column */
    flex-direction: column;
  }
  .esriBrowseItemsCtr .dgrid-grid.dgrid .dgrid-navigation {
    margin: 0;
    flex-flow: row wrap;
    display: inline-flex;
    align-content: flex-end;
  }
  .esriBrowseItemsCtr .dgrid-pagination-links {
    flex: 0 1 50%;  
  }
  .esriBrowseItemsCtr .dgrid .dgrid-pagination .dgrid-next, .esriBrowseAnalysisLayers .dgrid .dgrid-pagination .dgrid-previous {
    flex: 0 1 50%;  
  }
}
